/** * A little program to illustrate a way to set up * up a main function so that it uses command line * args when they are supplied, but otherwise uses * a set of defaults */ public class CommandLine { public static void main(String[] args) { String[] defaultArgs = {"Z", "X", "C", "V"}; System.out.println("Hello"); if (args.length==0) { args = defaultArgs; } for (int i=0; i