• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integer...

 
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: 4565
8
  • 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
Bartender
Pie
Posts: 5349
50
  • 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
Saloon Keeper
Posts: 3159
33
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: 4565
8
  • 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