Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Integer... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Integer..." Watch "Integer..." New topic
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: 4339
    
    7

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: 3574
    
  14

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

Joined: Sep 08, 2007
Posts: 3064
    
  33

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: 4339
    
    7

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integer...
 
Similar Threads
are these one and the same
SQL Query
ArrayList and integers
Adding primitives to Lists
Class Cast Exception while reading the int value from a session object