You need to declare the main methods with an array of strings as a parameter, so that the VM knows it is the entry point. But as you may want to call a method main, the compiler doesn't complain.
PS : ususally, the convention is to give classes a name that starts with an Upercase letter. You should have called your file (and, therfore, your class) HelloDan.java (and your class HelloDan).
What you want is :
class HelloDan { public static void main(String[] argv){ System.out.println("Hello Dan, it's pH !!"); }}
Good luck.
pH
[edited by - trivierph on April 14, 2004 1:18:20 PM]
[edited by - trivierph on April 14, 2004 1:21:09 PM]
[edited by - trivierph on April 14, 2004 1:21:33 PM]