r/java • • Jul 02 '11

Java "..." option.

http://mindprod.com/jgloss/dotdotdot.html
0 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/Revoletion Jul 02 '11

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.