Command Line Parameters
class CmdLine {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++)
System.out.println(i + "," + args[i]);
}
}The args argument of method
main an array of String
corresponding to the arguments on the command line.
$ java CmdLine this is "a test"