// RecursionDemo1B.java
public class RecursionDemo1B
{
public static void methodA(int n)
{
System.out.println("methodA begin: n=" + n);
if (n < 11)
methodA(n + 3);
System.out.println("methodA end: n=" + n);
} // method methodA
public static void main(String[] args)
{
methodA(7);
} // method main
} // class RecursionDemo1B