Source of Question1.java


  2: public class Question1
  3: {
  4:     public static void main(String[] args)
  5:     {
  6:          methodA(3);
  7:     }
  8:     public static void methodA(int n)
  9:     {
 10:         if (n < 1)
 11:             System.out.println('B');
 12:         else
 13:         {
 14:             methodA(n - 1);
 15:             System.out.println('R');
 16:         }
 17:     }
 18: }