Ok, i am VERY new to java and any type of programming,
After making a hello world application i wanted to do something with variables.
i got the basic code and adapted it so terminal would compile it. here it is
public class VariableTest {
public VariableTest() {
int first, second;
first = 1;
second = 2;
System.out.println ("a is " + first); // 's' in system must be capital
}//end of class
} //end of program
so i compiled it in terminal then i tried running it with "java VariableTest" to which terminal replies
Exception in thread "main" java.lang.NoSuchMethodError: main
and it didnt run my program, can someone tell me what i need to do to fix this?
thanks for reading
ollie
PS i use mac by the way

