Call
addAll. BTW it is in the API.James Stauffer
-----Original Message-----
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:03 AM
To: JDJList
Subject: [jdjlist] Appending Lists.
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:03 AM
To: JDJList
Subject: [jdjlist] Appending Lists.
Is it
possible to append one List onto another if they are implemented as the same
class (i.e., both lists are ArrayLists)? For example, if I have
an ArrayList of 10 objects, and I call a method that returns
another ArrayList with 5 more of the same objects as in the
first ArrayList, can I just append the second onto the first somehow?
Or do I have to iterate through the second adding them to the first?
Thanks.
____________________________________________________To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________ ____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
