PPS
Recursion yet another look To recurse is divine, to iterate is human. “Do I Have to Use Recursion?”. public static double pow(double value, int exponent){ if (exponent == 0) return 1D; else if (exponent == 1) return value; else { exponent = exponent - 1;