Ellipses in an argument in Java mean vararg of this type. So, in your case ... means that you can pass any number of String parameters to doInBackground methods.
So you can call this method doInBackground("String1", "String2", "String3") , as well as doInBackground("String1") , as well as doInBackground("String1", "String2", "String3", "String4") or any other form.
See here http://download.oracle.com/javase/1.5.0/docs/guide/language/varargs.html
Three periods after the final parameter type indicate that the last argument can be passed as an array or as a sequence of arguments. Vargars can only be used in the final position of the argument. Given the new varargs declaration for MessageFormat.format, the above call could be replaced by the next shorter and sweeter call
and final has the usual meaning. BTW, this feature is available in Java5 or later.
Contact: http://www.developer.com/java/other/article.php/3323661
As mentioned in the two links above, this is nothing but a sugared array. Basically, when you define myMethod(T... vararg) , Java sees it as myMethod(T[] vararg) . And when you call myObj.myMethod(t1, t2, t3, ..., tn) , Java passes it as myObj.myMethod(new T[]{t1, t2, t3, ..., tn}) .
Nishant
source share