java version "1.8.0_92" I have the following code I am trying to understand and trace.
The part I don't understand is the * a at the end. When does that multiplication get called? And what is the return value of power1(a, n - 1);
Is it n - 1 * a
public static double power1(double a, int n) { double result; if(n == 0) { return 1; } else { result = power1(a, n - 1) * a; return result; } }