// RecursionDemo2B.java

public class RecursionDemo2B
{
   public static void methodA(int n)
   {
      System.out.println("methodA begin: n=" + n);
      if (n > 10)
         return;
      methodA(n + 3);
      System.out.println("methodA end:   n=" + n);
   }  // method methodA

   public static void main(String[] args)
   {
      methodA(7);
   }  // method main
}  // class RecursionDemo2B