title: How to copy a row from a 2d array to another
body: <p>Hi I have a large 2D array (<code>sample[1000][10]</code>). I was wondering, how can I copy over the last row (1000) into a temp 2d array (<code>temp[1][10]</code>)? </p>
  
  <p>EDIT: I have tried the following but I was wondering if there is a much quicker code:</p>
  
  <pre><code>for (int i = 0; i &lt; 10; i++){
  temp[0][i] = sample[sample.length - 1][i];
  }
  </code></pre>