How to compare two different types of array list in android?
<p>I want to compare two different types of array list i.e. </p>

<p><code>ArrayList&lt;A&gt; list1 = new ArrayList&lt;A&gt;();</code><br>
<code>ArrayList&lt;B&gt; list2 = new ArrayList&lt;B&gt;();</code></p>

<p>So I want to compare <code>list1</code> and <code>list2</code> and get the count of indexes at which both are same?</p>
