Beginning Java/First Program

HelloWorld.java

edit
Below is the example of simple java program that writes "Hello, World!":

  Code:

public class HelloWorld {
    public static void main(String[] arguments) {
        System.out.println("Hello, World!");
    }
}

  Output:

Hello, World!

Main Method

edit