1: public class Question2 2: { 3: public static void main(String[] args) 4: { 5: methodB(3); 6: } 7: public static void methodB(int n) 8: { 9: if (n < 1) 10: System.out.println('B'); 11: else 12: { 13: //The following two lines are the reverse of 14: //what they are in Self-Test Question 1. 15: System.out.println('R'); 16: methodB(n - 1); 17: } 18: } 19: }