title: Make copy of an array
body: <p>I have an array <code>a</code> which is constantly being updated. Let's say <code>a = [1,2,3,4,5]</code>. I need to make an exact duplicate copy of <code>a</code> and call it <code>b</code>. If <code>a</code> were to change to <code>[6,7,8,9,10]</code>, <code>b</code> should still be <code>[1,2,3,4,5]</code>. What is the best way to do this? I tried a <code>for</code> loop like:</p>
  <pre><code>for(int i=0; i&lt;5; i++) {
      b[i]=a[i];
  }
  </code></pre>
  <p>but that doesn't seem to work correctly. Please don't use advanced terms like deep copy, etc., because I do not know what that means.</p>