public class Test { public static void main(String A[]) { String parameter; System.out.println("This program was executed with "+A.length+" arguments."); if (A.length>0) { parameter=A[0]; System.out.println("They are:"); for (int i=0; i<A.length; i++) System.out.println(A[i]); } else { System.out.println("No arguments provided, we will assume default values and go on."); parameter="xyz"; } } }