title: Simple way to find if two different lists contain exactly the same elements?
body: <p>What is the simplest way to find if two Lists contain exactly the same elements, in the standard Java libraries? </p>
  
  <p>It shouldn't matter if the two Lists are the same instance or not, and it shouldn't matter if the type parameter of the Lists are different.</p>
  
  <p>e.g.</p>
  
  <pre><code>List list1
  List&lt;String&gt; list2; 
  // ... construct etc
  
  list1.add("A");
  list2.add("A"); 
  // the function, given these two lists, should return true
  </code></pre>
  
  <p>There's probably something staring me in the face I know :-)</p>
  
  <hr>
  
  <p>EDIT: To clarify, I was looking for the EXACT same elements and number of elements, in order.</p>