Hello Every one, I have two Java Lists which contain Strings and I would need an intersection of the elements of two of these Lists in a Third list. How can this be done.Thanks in advance. [ March 06, 2006: Message edited by: seshu palmanti ]
Construct a third List as a copy of the first one; then call retainAll() on the copy, passing the second list as the argument. The copy is now the intersection.