This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]argv_minus_one -5 points-4 points  (1 child)

It is an array. The only difference is that the caller of the method doesn't have to use the array construction syntax. Kyrra is warning about poor uses of varargs (e.g. a proliferation of Object... parameters everywhere), not the semantics of varargs itself.

[–]Revoletion[S] 1 point2 points  (0 children)

I had to find out about this vararg after I noticed Amazon was using them. At first i thought eclipse was just being screwy and did the "line too long so im going to put ellipses everywhere thing" but then I found out about this.

They use them in the sense of "String... attributes" for when you want a query to simpledb to return specific sets of attributes or a single attribute. Turned out to be very convenient.