import java.lang.*; public class ex1 { public static void main ( String[] args ) { char[] A; // declare array A int n; int i; if ( args.length < 1 ) { System.out.println( "usage: java ex1 " ); System.exit( 1 ); } n = args[0].length(); // length of 1st cmd line argument A = new char[n]; // instantiate // STEP 1: STORE // copy characters from args[0] (1st cmd line argument) into char array A for ( i=0; i