T... is just a varargs parameter, where the element type is T , the generic type of the class type.
The thing is, you can call a method like this (if array is Array<String> ):
array.addAll("x", "y", "z");
which will be equivalent
array.addAll(new String[] { "x", "y", "z" });
It can be used without generics. For example:
public static int sum(int... elements) { int total = 0; for (int element : elements) { total += element; } return total; }
Varargs parameters were introduced in Java 5.
Jon skeet
source share