| 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.
|
 |
 |
|
|
subject: ArrayList / Vector
|
|
|