Skip to content

Instantly share code, notes, and snippets.

@adaptives
Created July 26, 2011 07:29
Show Gist options
  • Save adaptives/1106195 to your computer and use it in GitHub Desktop.
Save adaptives/1106195 to your computer and use it in GitHub Desktop.
package com.diycomputerscience;
/**
* This is the customary 'Hello World' in Java.
* When we run a Java class, it's main method os invoked. This has to be
* a public static method which takes an array of String objects.
*/
public class HelloWorld {
public static void main(String args[]) {
//The following line prints 'Hello World' to your console
System.out.println("Hello World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment