/**
 * Print the characters of a String in order
 * using recursion
 * @author Suzanne Balik, 4 Oct 2002
 */

public class RecursiveInOrder {

  private static void outputInOrder(String s) {
  
    if (s.length() == 0)
      return;
      
    else {
      
      System.out.print(s.charAt(0));
      outputInOrder(s.substring(1));
    }
  }
  
  public static void main(String[] args) {
  
    if (args.length == 1) {
    
      outputReverse(args[0]);
      System.out.println();
      
    }
      
    else 
    
      System.out.println
         ("usage: java RecursiveInOrder string");
      
  }
}