• Post Reply Bookmark Topic Watch Topic
  • New Topic

Integer...  RSS feed

 
Sanjay Izardar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between Integer[] and Integer...
 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Integer[] is an array of Integers. Have you studied arrays yet?
 
Sanjay Izardar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, i have.
 
Stephan van Hulst
Saloon Keeper
Posts: 6981
110
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanjay, there is some confusion because you put the ellipsis (...) at the end of your sentences. This makes it hard to distinguish between the punctuation and the actual Java feature.

You should read about varargs: http://download.oracle.com/javase/1.5.0/docs/guide/language/varargs.html
 
Mohamed Sanaulla
Bartender
Posts: 3169
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:Sanjay, there is some confusion because you put the ellipsis (...) at the end of your sentences. l


Nice catch!
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:Sanjay, there is some confusion because you put the ellipsis (...) at the end of your sentences. This makes it hard to distinguish between the punctuation and the actual Java feature.

Ah, good one. Yes, if the ellipsis were part of the Integer, then my answer changes. Shows the importance of unambiguous questions!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!