import java.lang.reflect.*;

/**
 * A simple example that uses for loops to move through
 * an array
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class ForExample2
{
    public static void main(String[] args)
    {
       int          n;

       JMUConsole.open();       
       //[0
       n = Array.getLength(args);       
       for (int i=0; i<n; i++)
       {
           JMUConsole.printf("Argument %d: %s\n", i , args[i]);
       }
       //]0
       JMUConsole.close();       
    }
}
