The signature for the main() method must be main(String[] args).
If your method signature is m1(XXX...args), it is changed to m1(XXX[] args) by the compiler.
The following declaration of main() method for the Main class is valid.
public class Main { public static void main(String...args) { System.out.println("Hello from varargs main()..."); } }