xhtml
 

Exercise 11: Checking Arguments

This program checks that there are exactly two command line arguments, and then prints them out with commas in between.

Your task is to adapt it to test that there are exactly three arguments, and print them out.

You may wonder why the program uses System.err.println and System.exit, so here are explanations:


Back