title: Java, recursively reverse an array
body: <p>I haven't found anything with the specific needs of my function to do this, yes, it is for homework.</p>
  
  <p>So I have:</p>
  
  <pre><code>public void reverseArray(int[] x) {
  
  }
  </code></pre>
  
  <p>Precondition: x.length > 0</p>
  
  <p>The fact that I can't have the function return anything, and the only argument is an array is leaving me stumped.</p>
  
  <p>I've tried using loops along with the recursion, but everything I've tried seems to end up with infinite instances of the function being made.</p>
  
  <p>I've gotten an idea/suggestion to use another function along with this one, but, how to use the original recursively is beyond me at the moment.</p>
  
  <p>Any help is appreciated.</p>