| Author |
Integer...
|
Sanjay Izardar
Greenhorn
Joined: Apr 18, 2011
Posts: 19
|
|
|
what is the difference between Integer[] and Integer...
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3795
|
|
|
Integer[] is an array of Integers. Have you studied arrays yet?
|
 |
Sanjay Izardar
Greenhorn
Joined: Apr 18, 2011
Posts: 19
|
|
|
yes, i have.
|
 |
Stephan van Hulst
Bartender
Joined: Sep 20, 2010
Posts: 3056
|
|
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
Joined: Sep 08, 2007
Posts: 2929
|
|
Stephan van Hulst wrote:Sanjay, there is some confusion because you put the ellipsis (...) at the end of your sentences. l
Nice catch!
|
Mohamed Sanaulla | My Blog
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3795
|
|
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!
|
 |
 |
|
|
subject: Integer...
|
|
|