// Demo 1 // My First Java Program. // Simple Hello World Java Application. // Adapted from Kernighan and Ritchie's classic C program. // Adaptation by Charles W. Neville, 1998. // All this program does is print "Hello World" on the command window screen. // To see how to compile and run this application, see the file // Application.txt in the Tutorials directory. class HelloWorld { // Java applications are stand-alone programs. // Every Java application, including this one, must have a method // named public static void main(String[] args). Method main // is called first whenever a stand-alone program is run. public static void main(String[] args) { System.out.println("Hello World"); } }