public class DebugFour3
// This class uses a FixDebugBox class to instantiate two Box objects
{
public static void main(String[] args)
{
int width = 12;
int length = 10;
int height = 8;
FixDebugBox box1 = new FixDebugBox
FixDebugBox box2 = new FixDebugBox(width, length, height);
System.out.println("The dimensions of the first box are");
box1.showData();
System.out.println("The volume of the first box is");
showVolume(box);
System.out.println("The dimensions of the first box are");
box2.showData.
System.out.println("The volume of the second box is");
showVolume(box2);
}
public static void showVolume(FixDebugBox)
{
double vol = aBox.getVolume();
System.out.println(volume);
}
}