hello.java


/** 
 * The Hello class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class Hello {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}


Results

This is the result of running the program

C:\ece449\hello>java Hello
Hello World!


Maintained by John Loomis, updated Mon Jan 26 13:17:46 2015