[Solved] Nesting method calls in java


fact(fact(3)) means to get the the return of the function fact(3) and use it as argument again in another call to fact.

Split it up to understand it better. fact(fact(3)) means the same as:

int value = fact(3);
fact(value);

solved Nesting method calls in java