I\'m writing a function that will call itself up to about 5000 times. Ofcourse, I get a StackOverflowError. Is there any way that I can rewrite this code in a f
StackOverflowError
You can increase the stack size by using -Xss4m.