wood burning stoves*
The moose likes Beginning Java and the fly likes Union of two arrays without using a temporary array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Union of two arrays without using a temporary array?" Watch "Union of two arrays without using a temporary array?" New topic
Author

Union of two arrays without using a temporary array?

sunilkumar suparasmul
Greenhorn

Joined: Sep 03, 2001
Posts: 2
Union of two ArrayLists without using a temporary array?
do anybody have source code for this please let me know.
or any suggetsiions how it can be done?
i have two Arraylist objetcs and i need to do a union of it
in the first arraylist itself which would contain elements fron the first and second arraylist together withour repetition

------------------
sandeep jakkaraju
Greenhorn

Joined: Sep 05, 2001
Posts: 8

public boolean addAll(Collection c)

Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Union of two arrays without using a temporary array?