/**
 * a little Java application class just for playing
 * with 11 or fewer command-line arguments
 * 
 * @author Sharon Tuttle
 * @version 2015-09-02
 */

public class TryMe2
{
    /**
     * as long as there are 11 or fewer command-line arguments,
     * this simply echoes its command-line
     * arguments to the screen, 1 per line
     *
     * @param args command line arguments to print to screen
     */
    
    public static void main(String[] args)
    {
        // complain and exit if there are more than 11
        //     command-line arguments!

        if (args.length > 11)
        {
            System.out.println("limit of 11 command-"
                               + "line args!");
            System.exit(1);
        }
        
        // ...otherwise, output each to the screen

        for (String arg: args)
        {
            System.out.println(arg);
        }
    }
}