• Post Reply Bookmark Topic Watch Topic
  • New Topic

vararg syntax  RSS feed

 
sireesha vadlamani
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we use only three dots(...) in vararg method???
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because that's how the syntax was defined. What would you like to use instead?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess - and this is only a guess - that is it because in English, there is what's called an Ellipsis, which is three dots.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!