I'm trying to construct a rectangle & compute its area using the getWidth & getHeight methods.. but i cant figure out for to construct a freakin rectangle!! I keep getting the same error when i go to complie it.. no matter how hard i try :p
"Cannot find symbol"
import java.awt.Rectangle;
public class AeraTester
{
public static void main(String[] args)
{
RectangleBox = new Rectangle(10, 20, 12, 15);
System.out.println(RectangleBox.getWidth() );
}
}
this is really amature.. but i still need help :(