JDK 5.0 provides a feature to pass unspecified number of argument to a method. Java treats the variable-length argument list as an array. This is represented by argument type followed by three dots in the declaration of the Method.

The method int sum(int…numbers) can take any number of parameters of type integer.