title: Printing A String Vertically Using Recursion In Java
body: <p>Hey I'm working on a problem where you would print a string vertically using recursion. I know how to do this if i were to use a for loop:</p>
  
  <pre><code>for (int i = 0; i &lt; str.length(); i++) {
  
     System.out.println(str.charAt(i));
  </code></pre>
  
  <p>but i'm not entirely sure how to do it using recursion. I took care of the base case but i'm not sure how to continue:</p>
  
  <pre><code>if (str == null || str.equals("")) {
  
      return str;
  </code></pre>
  
  <p>Any help will be greatly appreciated. Thanks!!!</p>