Hi,
I was seeing a tutorial on
Java and they were able to run this program. But i have a few questions about this program:
import acm.graphics.*;
import acm.program.*;
public class
Test extends GraphicsProgram{
public void run(){
add ( new GLabel ( "hello world", 100, 75));
}
}
I was told that a program needs to have the main method to start the program but this does not have any but it runs
and moreover i tried executing this program both on cmd line and on an eclipse, but it shows me that there are errors with the import statements,
So can any one explain me what's worng with the import statements.