Java Program to Hello World


-

-

Example:

Copied
public class HelloWorld {
	public static void main(String[] args) {
		// Prints "Hello, World" to the terminal window.
		System.out.println("Hello World!");	
	}
}

Output:

Hello World!