title: Array in the reverse order
body: <p>I have an array of n elements and these methods: </p>
  
  <ul>
  <li><code>last()</code> return the last int of the array</li>
  <li><code>first()</code> return the first int of the array</li>
  <li><code>size()</code> return the length of the array</li>
  <li><code>replaceFirst(num)</code> that add the int at the beginning and returns its position</li>
  <li><code>remove(pos)</code> that delete the int at the pos</li>
  </ul>
  
  <p>I have to create a new method that gives me the array at the reverse order.
  I need to use those method. Now, I can't understand why my method doesn't work.
  so 
  for (int i = 1; i
  
  <p>The remove will remove the element at the position i, and return the number that it is in that position, and then with replaceFirst will move the number (returned by remove) of the array.</p>
  
  <p>I made a try with a simple array with {2,4,6,8,10,12} 
  My output is: 12 12 12 8 6 10</p>
  
  <p>so if I have an array with 1,2,3,4,5</p>
  
  <ul>
  <li>for i = 1; I'm gonna have : 2,1,3,4,5</li>
  <li>for i=2 >3,2,1,4,5</li>
  <li>etc </li>
  </ul>
  
  <p>But it doesn't seem to work.</p>