// File: HelloWorld.java // Sample simple java program. Required by law to be the first // java program anyone every sees. :) // To run. First compile the program // $> javac HelloWorld.java // // Next, run the java interpreter specifying the HelloWorld class // $> java HelloWorld /** * This is a Javadoc comment * * * @author Pat Troy * @version 1.1.1.1.1.1.5 * */ public class HelloWorld { /** * The main method. Note this is a static method. * * @param args An array of strings that come from the command line. * */ public static void main (String [] args) { System.out.println ("Hello World!"); } }