public void foo (String ... strs, int token) {}.. The compiler just reports "; expected at line ". The variable strs is treated as an array anyways and can hold zero or more arguments. So this syntax should be valid too....
any comments....
SCJP 1.5<br />SCWCD 1.4
Marcus Green
arch rival
Rancher
Joined: Sep 14, 1999
Posts: 2813
posted
0
A method can only have one variable length argument and it must be the last in the method signature. You can read more about this at