title: Is there any method that creates another arraylist with the common values of two arraylists?
body: <p>That is, if I have the next:</p>
  
  <pre><code>ArrayList&lt;Integer&gt; array1 = new ArrayList&lt;Integer&gt;();
  ArrayList&lt;Integer&gt; array2 = new ArrayList&lt;Integer&gt;();
  
  array1 ==&gt; (1,11,12,13,14,15,16,17,18)
  array2 ==&gt; (1,17,18)
  </code></pre>
  
  <p>Is there any method that creates another arraylist with the common values?</p>