PrintArgs.java


//  PrintArgs.java

//  Class PrintArgs
//  ------------------------------------------------------------------
/**
  *   Prints the command line arguments.
  *
  *   @author C. Vickery
  */
  public class PrintArgs {

  //  Method main()
  //  ----------------------------------------------------------------
  /**
    *   Prints each of the command line arguments, if there are any.
    *
    *   @param  argv The String array of command line arguments.
    *   @return nothing
    */
    public static void main( String[] argv ) {

      for ( int i = 0; i < argv.length; i++ ) {
        System.out.println( "  " + argv[ i ] );
      }

    }

  }