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 may put your "Block"s into a queue/stack and iterate as long as Blocks are available.