I have two arrayLists
ArrayList one = {A, B, C, D, E}
ArrayList two = {B, D, F, G}
I want to have my final ArrayList which will have All the elements of one and the elements which are only in two and not in one.
So ArrayList final = {A, B, C, D, E, F, G}.
How can I do this?
Setpossible? This requires that your items in list one are unique.Setis available in 1.2. The question you must answer is: do you want any duplicates in your final list/set?