This content has been marked as final. Show 2 replies
AQ_Java wrote:Don't expect miracles from recursion; if a function f uses a local variable i and calls a function g that also uses a local variable i you wouldn't expect function g to change the local variable i in function f, would you? It doesn't make any difference when f == g.
I am really confused in this code, when the execution enter the loop there is call to a recursion method, my question is what happened to variable i in the FOR control does it start form value 0 or continue with the original endingString.length
This recursion calls inside iteration really confusing, can anyone explain the order of the execution to me
Cross posting is rude.
edit Not the first time too. Apologised for cross posting earlier but obviously didn't mean it.
Edited by: Darryl.Burke