title: Copy and modify array elements
body: <p>I had to write a loop for an array which wanted to use the oldScores in the output but instead <code>newScores[0] = 20</code> and <code>newScores[3] = 10</code>.
  I pass my first run when it test for <code>{10, 20, 30, 40,}</code>. Which expects an out put of: <code>20 30 40 10</code>.
  When it passes the first test it tests it again with <code>oldScores = {199}</code>, which expects an output of just <code>199</code>. </p>
  
  <pre><code>     public class StudentScores {
        public static void main (String [] args) {
        final int SCORES_SIZE = 4;
        int[] oldScores = new int[SCORES_SIZE];
        int[] newScores = new int[SCORES_SIZE];
        int i = 0;
  
        oldScores[0] = 10;
        oldScores[1] = 20;
        oldScores[2] = 30;
        oldScores[3] = 40;
  
       /* solution goes here */
  
       for (i = 0; i &lt; SCORES_SIZE; ++i) {
       System.out.print(newScores[i] + " ");
       }
       System.out.println();
  
      return;
       }
      }
  </code></pre>
  
  <p>The code I used is here</p>
  
  <pre><code> for(i=0; i&lt;SCORES_SIZE -1; i++){
    newScores[i] = oldScores[i +1];
    newScores[3] = oldScores[0];
   }
  </code></pre>
  
  <p>By the way the rest of the code cannot be changed, only the solution can be changed.</p>