recursive leads to stack overflow



I have a recursive function to buid up a tree. When the tree grwos too big,
my java give me a error of stack overflow. si there some solutions rather
then reconsidering the algorithms?

Thanks!


.