Comparing two arraylists with multiple set fields
<p>I am trying to compare two ArrayLists, but I can't seem to get it work.</p>

<p>Suppose:</p>

<p>My main arrayList called List 1 gets its value through:</p>

<pre><code> ArrayList&lt;xTypeClass&gt; List1 = new ArrayList&lt;xTypeClass&gt;(); 
 xTypeClass tmp = new xTypeCLass();
  tmp.setName(name);
  tmp.setaddress(address);
  tmp.setPhone(phone);
  tmp.setMonth(mo);
 ..etc
 List1.add(tmp);
</code></pre>

<p>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.</p>
