New parameter for main method : Main « Language « Java Tutorial






public class Main {
  public static void main(String... args) {
    for (String arg : args) {
      System.out.println(arg);
    }
  }
}








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.