/* Author: James Tam Version: April 1, 2010 This program will read the command line arguments entered as the program runs into the the array args (argument strings). Each input is stored via an array element. The length of the array is determined by the number of command line arguments entered by the user. The loop will iterate through the array one element at a time and display each argument onscreen. (The name of the source code Java file is not counted as a command line argument so element zero in the array contains the first command line parameter). */ public class Driver { public static void main(String[] args) { // While there are still command line arguments display them. for (int i = 0; i < args.length; i++) System.out.println(args[i]); } }