Try something like the following at the beginning of main():


public static void main(String[] args) throws IOException {
System.out.printf("Number of args = %d\n", args.length);
...