How do i import AWT?
- by David
Im teaching myself java and the book i'm looking at just got around to explaining AWT.
here is my source code:
java.awt.*
class obj
{
public static void main (String[]arg)
{
Point blank;
blank = new Point (3,4) ;
int x = blank.x ;
System.out.prinln (x) ;
}
}
here is the error i get while trying…