| Author |
Adding a value into an existing ArrayList
|
Jolie Lee
Ranch Hand
Joined: May 08, 2005
Posts: 87
|
|
I've a collection of data, using iterator and add it in an arraylist. besides the data, i've retrieved another value and wanted to store in the same arraylist. how can i do that?
|
Jys<br /><a href="http://jy-s.com" target="_blank" rel="nofollow">http://jy-s.com</a><br /> <br />Trying my very best to learn java, please forgive me if i'm asking some really stupid questions.
|
 |
Steve Morrow
Ranch Hand
Joined: May 22, 2003
Posts: 657
|
|
I've a collection of data, using iterator and add it in an arraylist.
FYI, have a look at the addAll() method.
besides the data, i've retrieved another value and wanted to store in the same arraylist. how can i do that?
The same way you add any other single object: add().
|
 |
 |
|
|
subject: Adding a value into an existing ArrayList
|
|
|