Possible Duplicate:
What is it called when you use object… as a parameter?
I'm seeing this kind of pattern a lot in Java. My question is, what is the ...
for, and what's it called?
Possible Duplicate:
What is it called when you use object… as a parameter?
I'm seeing this kind of pattern a lot in Java. My question is, what is the ...
for, and what's it called?
It's called "varargs":
http://docs.oracle.com/javase/1.5.0/docs/guide/language/varargs.html
It's a feature of Java 1.5+ and has been around for nearly a decade.
OK...
(Params... params)
"..." means variable length of parameters.
Moreover doInBackground a method to do the process intensive work in non-ui thread, present in SwingWorker class Java
, and in AsyncTask<> in Android
.