File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ArrayList / Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "ArrayList / Vector" Watch "ArrayList / Vector" New topic
Author

ArrayList / Vector

Vishal K Patel
Ranch Hand

Joined: Oct 20, 2006
Posts: 43
We know that ArrayList and Vector both are growable array of Objects.
but can we store primitive datatypes in it?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
No, you cannot store them directly. However, you can add a primitive easily since 1.5 because they can be autoboxed.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ArrayList / Vector
 
Similar Threads
Array List vs Vector
array
type casting
vector and arraylist
Technical Interview Questions