title: Creating new array with contents from old array while keeping the old array static
body: <p>Say I have an array of integers, </p>
  
  <pre><code>int[] array = new int[7];
  for(int i = 0; i &lt; 7; i++)
  {
  array[i] = i;
  }
  </code></pre>
  
  <p>Now i want to get only the first four numbers in that <code>array</code>, and turn put that into another array. </p>
  
  <p>So I really want something like...</p>
  
  <pre><code>newArray = array[0-3].
  </code></pre>
  
  <p>I know that syntax is wrong, but I'm just giving the general idea of what I'm trying to do, is anything like that possible? Or do i have to create a loop and add it manually into the <code>newArray</code>? </p>