import.awt.Rectangle;
public class AreaTester
{
public static void main(String[] args)
{
Rectangle R = new Rectangle(5,6,7,8);
System.out.print("w: ");
int w = R.getWidth();
System.out.println(box.getWidth());
System.out.print("h: ");
int h = R.getHeight();
System.out.println(box.getHeight());
int area = w*h;
System.out.println("Area of Rectangle:"+ area);
}
}
The above code gives error:<identifier> expected
import.awt.Rectangle;
^