Java Hello World

Here is a basic hello world java program. Run the following to compile and run it.

$ javac HelloWorld.java
$ java HelloWorld


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

Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments