(10-01-2010, 10:01 AM)Untouch Wrote: I just started learning java but this part isn't completely accurate it should be writing like this (i think):
Code:public class HelloWorld
{
public static void Main(String []args)
{
System.out.println("Hello World");
}
}// end class
Doesn't matter where you put the squigglies, as long as there are in the right place. It's just a matter of preference for programmers. I prefer to do it like this:
Code:
public Constructor() {
//content
}
Also you wrote your main method wrong, it's
Code:
public static void main(String[] args) {
}