public static void main(String[]args) {
System.out.println("main method success!");
}
public static void main(String[] args) {
System.out.println("main method success!");
}
public static void main(String...args) {
System.out.println("main method success!");
}
public static void main(String... args) {
System.out.println("main method success!");
}
以上四种写法都是一样的,都是java application的入口程序,下面的写法不报错,但不是入口程序
public static void main(String[]... args) {
System.out.println("main method success!");
}