//ArgInt.java //an integer command line argument public class ArgInt { public static void main (String[] args) { int count = Integer.parseInt(args[0]); //parseInt method of builtin Integer class. //takes String argument and returns int for (int i=1; i<=count; i++) System.out.println("arf!"); } } /* java ArgInt 5 java ArgInt //index out of bounds error: ArrayIndexOutOfBoundsException java ArgInt duhh //can't be parsed as an int error: NumberFormatException modify so that second arg is string to replicate */