How to resolve java.lang.StackOverFlowError when using a recursive method call?

Printable View