title: Java Array Recursion
body: <p>The purpose of this assignment is to learn recursive methods. For this particular problem, I need to print the values of <code>list</code>, one per line. The skeleton of the method I need to complete cannot be changed and is as follows:</p>
  
  <pre><code>public void list (String[] list) {
  
  }
  </code></pre>
  
  <p>The instructions say that helper methods may make this easier to write. Here is what I have for my helper method:</p>
  
  <pre><code>public void print(String[] list, int index) {    
        if (index &lt; list.length) {
            System.out.println(list[index]);
            print(list, index+1);
        }
  }  
  </code></pre>
  
  <p>I would just like to call the print method through the list method for testing. I know the grading is done through a script, so again I cannot change the return type or parameters of the list method. Please excuse my formatting errors, and thank you in advance for your help!</p>