How do I create a method that accepts a variable number of arguments?
Created Jan 22, 2006
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 Type is the Java class type for the argument, and name is how it is accessed.