I am trying to compare two ArrayLists, but I can't seem to get it work.
Suppose:
My main arrayList called List 1 gets its value through:
ArrayList<xTypeClass> List1 = new ArrayList<xTypeClass>();
xTypeClass tmp = new xTypeCLass();
tmp.setName(name);
tmp.setaddress(address);
tmp.setPhone(phone);
tmp.setMonth(mo);
..etc
List1.add(tmp);
Now I have another list2 that holds the exact type format, but has different values. And I want to compare List2 to 1 and see which ones does not exist in List2 that does in List1 and add it to List2. I am having problem using double for loops to go around both list to find which exists and which doesn't. Can someone point me in the right direction? Comment below if you need any more information.