Java Method Parameters: Varargs, Overloading, and Recursion
Variable Arguments (Varargs) Since JDK 1.5, when defining a method, if the type of parameters is determined but the number of parameters is uncertain, you can use variable arguments. The syntax for varargs is: [modifier] returnType methodName([non-vararg parameter list,] parameterType... parameterNa...