इस कोड को जावा में बदलेंdef power_of_two(x):
    if x > 0:
        return x * power_of_two(x-1)
    else:
        return 1
public class PowerOfTwo {
    public static int powerOfTwo(int x) {
        if (x > 0) {
            return x * powerOfTwo(x - 1);
        } else {
            return 1;
        }
    }
    public static void main(String[] args) {
        int result = powerOfTwo(4);
        System.out.println(result);
    }
}