you have to define RectangleBox of a Rectangle type or of Rectangle supper classes
so either you write [CODE]Rectangle RectangleBox ;[/CODE] in line 10
or you write [CODE]Rectangle RectangleBox = new Rectangle(10, 20, 12, 15);[/CODE] in line 11 Read More
As naief pointed out, You have not specified the type of variable RectangleBox is. Every variable needs a type.
//type - variable name
In your case, you want your RectangleBox variable to be of type Rectangle.
Most naming conventions don't start variable names … Read More
System.out.println("area = " + area);
you could do
System.out.print ("area = ");
Both will achieve the same result. Read More
yes as ajst said (above)
the reason why your area = did not print on the same line is because you put System.out.[I]println[/I] instead of System.out.print. The println command adds a line of space. typing in print instead of println on the other hand does not add a space. (not … Read More
Yea sorry I should of added an explanation, but javanoob101 did it for me :) Read More