COMP2396
Loading...
Searching...
No Matches
BoxTestDrive2 Class Reference

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Definition at line 3 of file BoxTestDrive2.java.

Member Function Documentation

◆ main()

static void BoxTestDrive2.main ( String[] args)
inlinestatic

Definition at line 4 of file BoxTestDrive2.java.

4 {
5 Box box = null;
6
7 try {
8 FileInputStream fs = new FileInputStream("Box.sav");
9 ObjectInputStream os = new ObjectInputStream(fs);
10 box = (Box) os.readObject();
11 os.close();
12 } catch (Exception ex) {
13 ex.printStackTrace();
14 }
15
16 System.out.println(box.getWidth());
17 System.out.println(box.getHeight());
18 }
Definition Box.java:3
int getWidth()
Definition Box.java:10
int getHeight()
Definition Box.java:11

The documentation for this class was generated from the following file: