comparision of arraylist
<p>hi am storing the results in array list which are obtained by querying  different database in java. i need to compare this array list to get the common rows</p>

<pre><code>      List name = new  ArrayList();
      name.add(Spreadsheets.getString("Name"));

     List namedb = new  ArrayList();
     namedb .add(rs.getString("eName"))
</code></pre>

<p>in c++ we use strcmp to compare. but in java how do i compare this arraylist and it should return common rows. or how do i apply binary search algorithm to search these to arraylist?</p>
