Not exactly. String... is more powerful. It allows arrays like String[], but also lists of arguments. The following is legal with your declaration:
The ... are called varargs; look it up.
1. So, that limits '...' only to arguments,right?
2. Can this be used with any Object - like func(Integer... ints)?
3. Does '...' work with primitives - int... ?
And you may want to tell your friend -- if you don't know what something is, is it a good idea to use it? Just because a var-arg can take an array, it doesn't mean that you should use it, when you meant an array.
Hey...dont bother yourself, Rob. I found my answers! Thanks for your explanation.
For others,
1. Varargs can be used only in the final argument position. Only in arguments.
2. Any Object can be used along with.
3. primitives supported to! - public static void hello(int... a) is fine with the compiler!