Best answer as chosen by user Bfuel: Re: Hello world

by Kees_B Moderator - 3/25/13 4:18 AM

In Reply to: I can t compile the "HelloWorld" programme. by Bfuel

You write "public static void main(String[] args)"
The compiler reports an error in "public static void main(string[] args)"

Since Java-coding is case-dependent, it's an understandable message. The name of the class is String, not string.

By the way, why add this parameter (a String array of arguments) if you don't use it? That's what I call bad programming. It's sufficient to write public static void main().