title: How to print a through z using a recursive method
body: <p>Hi new to java here and I need to print the alphabet from a to z and in reverse from z to a. I need to do this using a recursive method.</p>
  
  <pre><code>class Alphabets{
  
  
  public static void main(String args[]){
    char ch;
    for( ch = 'a' ; ch &lt;= 'z' ; ch++ )
      System.out.print(ch);
    System.out.println();
    for( ch = 'z' ; ch &gt;= 'a' ; ch--)
       System.out.print(ch);
  
    if (ch &lt;= 'a') ch = ch--;
      else if(ch &gt;='a') ch = ch++;
      System.out.print(ch);
  
   }
  }
  </code></pre>
  
  <p>My output for the two for loops seems to work just fine but I am completely lost on the recursive method. </p>