How do I create a method that accepts a variable number of arguments?

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.