title: java ArrayList clone several times
body: <p>I am trying to clone my <code>ArrayList</code> 4 times using a <code>for-loop</code> and <code>clone()</code> method, but I could not.
  The below is the (straightforward) code I wrote:</p>
  
  <pre><code>static ArrayList&lt;Integer&gt; newArrList;
      for (int n = 1; n &lt;= 4; n++) {
          ArrayList&lt;Integer&gt; arrList = new ArrayList&lt;&gt;();
          for (int i = 1; i &lt;= 13; i++) {
              arrList.add(i);
          }
          newArrList = (ArrayList&lt;Integer&gt;) arrList.clone();
          for (int i = 1; i &lt;= 13; i++) {
              newArrList.add(i);
          }
      }
  </code></pre>
  
  <p>The output is:
  <code>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]</code>
  It prints my <code>arrList</code> only 2 times, but I want it 4 times. Like that:
  <code>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]</code></p>
  
  <p>Is it the best way to clone an <code>ArrayList</code> multiple times? and what am I doing wrong?</p>