// CommandLineDemo1.java
// Demonstrates command-line arguments
// Expects the user to type:
//
// java CommandLineDemo1 firstname middlename lastname
//
// using one's actual first, middle, and last names.
// Displays ugly message if the user does not type
// enough command-line arguments.
public class CommandLineDemo1 {
public static void main(String[] args)
{
String name;
name = args[0] + " " + args[1] + " " + args[2];
System.out.println("Hello, " + name + ".");
} // method main
} // class CommandLineDemo1