Let me also try to explain you what raj meant
void method(
String... args, int... i) //not allowed, cannot have more than one var-args in a method
-------------------------------------------------------------------------
void method(String... args, int i) //not allowed, var-arg must be the last parameter so the correct code would be
void method(int i, String... args)
-------------------------------------------------------------------------
void method(String... args)
now you can call this method as
method(); //no arguments
method("a"); //1 argument
method("a", "b"); //2 argument
and so on. i.e. you can pass any number of arguments to this method...
[Edit: Oops! I was not quick enough]
[ December 05, 2008: Message edited by: Ankit Garg ]