class Arg { static public void main(String[] argv) { if (argv.length != 1) { System.err.println("Arg: requires exactly 1 command line argument"); System.exit(1); } System.out.println("I received the argument " + argv[0] + "."); System.exit(0); } }