I am not sure how to explain this so I will give an example. If I were to have two arrayList like the one listed below:
ArrayList<String> java = new ArrayList<String>();
java.add("1");
java.add("2");
java.add("2");
java.add("4");
ArrayList<String> lava = new ArrayList<String>();
lava.add("0");
lava.add("2");
lava.add("5");
lava.add("4");
how would i remove the duplicates, like in ArrayList lava there is a 2, then all the elements with a value of 2 should be removed. How would I do this?