Hello World! in Java

public class HelloWorld {

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

The above code can be run in NetBeans IDE.