title: Best way to transfer value from an ArrayList to another
body: <p>With 2 ArrayList, I was wondering if the best way from transforming the 1st one into a "copy" of the second one is to go like</p>
  
  <pre><code>myFirstArray.clear();
  myFirstArray.addAll(mySecondArray);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>myFirstArray = mySecondArray.clone();
  </code></pre>
  
  <p>What are the main differences between those two method, which on is preferrable and is there another "easier" or "cleaner" solution. Thanks for any tips</p>
  
  <p>EDIT : I use this copy for replacing an Array of item im currently working with the one where I store the item I'll work with in the next loop. At the end of the loop I replace my currentArrayList with my futurArrayList and I clear my futurArraylist in order to add new item in it (i hope its clear enough)</p>