Will begin with the driver class named Prob01, which is shown in its entirety in Listing 1.
| Listing 1. The driver class. |
|---|
import java.awt.Color;
public class Prob01{//Driver class
public static void main(String[] args){
//Instantiate an object and call its method named run.
Prob01Runner obj = new Prob01Runner();
obj.run();
//Get information from the object and display it on
// the command-line screen.
System.out.println(obj.getMars());
System.out.println(obj.getJoe());
System.out.println(obj.getSue());
}//end main
}//end class Prob01 |
| File: bl.htm | [Next] | [Prev] |