4 public static void main(String[] args) {
8 FileInputStream fs =
new FileInputStream(
"Box.sav");
9 ObjectInputStream os =
new ObjectInputStream(fs);
10 box = (Box) os.readObject();
12 }
catch (Exception ex) {
16 System.out.println(box.getWidth());
17 System.out.println(box.getHeight());