The error happens because the program is continually calling itself in a loop recursively. Every call uses some memory.
When the JVM runs out of memory it throws the error: ...
Type: Posts; User: Norm
The error happens because the program is continually calling itself in a loop recursively. Every call uses some memory.
When the JVM runs out of memory it throws the error: ...
It'll help us help you if you would copy the full text of the error messages and paste it here.
One problem I see with the code is that it uses the == operator to compare String objects instead of...