public class Demonstrate {
public static int recursivePowerOf2 (int n) {
 if (n == 0) {
  return 1;  
 }
 else {return powerOf2 (n);}
}
 public static int powerOf2 (int n) {
  int counter, result;       // Initial value is 1
  for (counter = n, result = 1; counter != 0; --counter) {
    result = 2 * result;
  }
  return result;
 }
 public static void main (String argv[]) {
  System.out.println (recursivePowerOf2 (4));
 }
}
