Free CoreJava Programs Source codes | Examples | Video Tutorials Download

Tuesday, January 20, 2009

Print Welcome Message

/**

* Compile the class and output the welcome message.

*/

public class Try

{

/**

* displays welcome message

*/

public static void display()

{

System.out.println("Hello World!");

}

/**

* execution begin from here

* @param args : command line argument

*/

public static void main(String[] args)

{

display();

}

}

No comments:

Post a Comment

Followers