title: Difference of 2 Ways of Adding Elements to Java ArrayList Using Iterator
body: <p>What is the difference between:</p>
  
  <pre><code>for (ArrayList&lt;Integer&gt; a : result)
      temp.add(new ArrayList&lt;Integer&gt;(a));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>for (ArrayList&lt;Integer&gt; a : result)
      temp.add(a);
  </code></pre>
  
  <p>?</p>