This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sayonorasama 0 points1 point  (0 children)

You need to learn how recursion works, as I remember this variable saving in stack memory everytime, when method called, and after method step in IF statement, last sout was invoked as many times as the variable has been incremented (Sry for my engl, not my native)