/** A class that prints to the screen a list of arguments passed to the program on the command line. */ public class EchoParameters { /** Contains the main method. @param args used for command-line arguments */ public static void main(String[] args) { // Prints to the screen the String objects referenced by the command-line arguments. for (int i = 0; i < args.length; i++) System.out.print(args[i] + " "); // Prints to the screen the length of the args array. System.out.println("\nThe length of the args array is: " + args.length); } }