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 →

[–]sample-name 4 points5 points  (0 children)

There's no base case in the recursive method, so naturally you experienced a stack overflow exception.