/**
 * HelloWorld - Assignment P0 <br /><br />
 *
 * Create a minimal Java application... <br /><br />
 *
 * Retrieve a command line argument to produce two lines of output: <br /><br />
 *
 * Hello Java World! <br />
 * My name is 'Bary W Pollack' <br /><br />
 *
 * where 'Bary W Pollack' comes from the command line <br />
 *
 * To run this program, compile it:  javac HelloWorld.java [Enter]
 * then type:                        java HelloWorld YourFullName [Enter] <br />
 *
 * @author Bary W Pollack
 * @version 12/24/08 - 2100 - Updated
 */

public class HelloWorld {

    /**
     * This is the main method -- 
     * it is invoked automatically as the entry point for every Java program
     *
     * @param args The data to be displayed on the second line, after "My name is ..."
     * @return void
     */

    public static void main(String[] args) {
        System.out.println("Hello Java World!");
        if (args.length <= 0) {
            System.out.print("You forgot to put your name on the command line!");
        } else {
            System.out.print("My name is");
            for (int i = 0; i < args.length; i++) {
                System.out.print(" " + args[i]);
            }
        }
        System.out.println();
    }

}
