Can someone please tell how can I print the result of the following class:
public static int power2(int x, int y)
{
if (y==0)
return 1;
else
return x*power2(x,y-1);
}
public static void main(String[] args) {
power2(2,2);
}