public class TestExponent2
{
   public static void main (String [] args)
	{
	     System.out.println (exponent2(4,2));
  	}// end main

   public static int exponent2 (int x,int  y)
	{
	   int temp;
		temp = 0;
	   if (y == 1)
		{
		   temp = x * y;
			return temp;
		}
	   else
		{
		   temp = exponent2 (x, y-1) * 3;
			return temp;
		}

	} // end method
}// end class
