class CommandLine { public static void main(String args[]) { for (int i = 0; i < args.length; i++) System.out.println("args[" + i + "]: " + args[i]); } }
1.7.Main | ||||
1.7.1. | The Method main | |||
1.7.2. | Throw Exception through main method | |||
1.7.3. | New parameter for main method | |||
1.7.4. | Display all command-line arguments. |