Below is the syntax highlighted version of CommandLine.java
from §2.1 Static Methods.
/****************************************************************************** * Compilation: javac CommandLine.java * Execution: java CommandLine [command line arguments] * * Print out the command line arguments, one per line. * * % java CommandLine this is a test * this * is * a * test * ******************************************************************************/ public class CommandLine { public static void main(String[] args) { for (int i = 0; i < args.length; i++) StdOut.println(args[i]); } }