When using Collections, can we add the Integer, Float objects. ie., how to convert the objects in Vector / ArrayList to an Integer or Float etc.
[B]Question asked by visitor vimalraj[/b]
Printable View
When using Collections, can we add the Integer, Float objects. ie., how to convert the objects in Vector / ArrayList to an Integer or Float etc.
[B]Question asked by visitor vimalraj[/b]
Using wrapper class you can add and retrieve the data from Vector/ArrayList.
For example when Retrieving you can use like this....
int x = (Integer)myintList.get(i);
-----------------------
suresh