How do I create a method that accepts a variable number of arguments?
John Zukowski Variable arity or vararg methods were added to JDK 5.0. The last argument to a method can be declared as
Type... name, where
Typeis the Java class type for the argument, and
nameis how it is accessed.