Q:

compare two lists and remove duplicates java

listA.removeAll(new HashSet(listB));
0

New to Communities?

Join the community