Alfred Hitch

Greenhorn
+ Follow
since Nov 30, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alfred Hitch

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.
10 years ago
Thanks Jesper. That helps me
10 years ago
what do you mean by implicitly promoted; For example it says return, argument are implicitly promoted
10 years ago