title: How to reverse an ArrayList without the reverse method?
body: <p>Hello I am trying to reverse an ArrayList without the reverse method. I just wanted to make it work without the method. I can't seem to get it right. 
  This is what i have so far:</p>
  
  <pre><code>for (int x = nums.size()-1; x&gt;=0; x--)
      {
  
          for(int z =0; z&lt;nums.size();z++)
          {
              nums.set(z, x);
  
          }
      }
  </code></pre>
  
  <p>This is my output:
  run:
  0
  1
  2
  3</p>
  
  <p>1
  1
  1
  1
  BUILD SUCCESSFUL (total time: 0 seconds)</p>