// Display command line arguments. public class GetArgs { public static void main(String[ ] args) { for(int i = 0; i < args.length; i++) System.out.printf("Command line arg %d: %s\n", i, args[i]); } }