UNB/ CS/ David Bremner/ teaching/ java/ BitmapWriter.java
import java.io.ObjectOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class BitmapWriter{
    public static void main(String[] args) throws IOException{
        Bitmap bitmap=new Bitmap("noisy.pbm");

        ObjectOutputStream out=new ObjectOutputStream(
                                             new FileOutputStream("noisy.bin"));

        out.writeObject(bitmap);
        out.close();
    }
}

//