X
xareon
hi all men, i'm new here, but got an issue. i use eclipse as IDE.
i'm writing a console program that work on a Label stack, where Label
is a class that i've defined by using a string and an int. i also wrote
a class with a method that takes a string as input, and recursively
pushes/pops elements of the stack.
the code is correct, (i checked it for various input strings with
length less than 10), but i get a java.lang.StackOverflowError for
bigger input strings (like 12 or more charachters in), as JVM couldn't
run all that operations (**** recursion!). is there a way to fix this
issue, maybe running the code stand-alone, instead of doing it from
eclipse or trying something else? thank you all
i'm writing a console program that work on a Label stack, where Label
is a class that i've defined by using a string and an int. i also wrote
a class with a method that takes a string as input, and recursively
pushes/pops elements of the stack.
the code is correct, (i checked it for various input strings with
length less than 10), but i get a java.lang.StackOverflowError for
bigger input strings (like 12 or more charachters in), as JVM couldn't
run all that operations (**** recursion!). is there a way to fix this
issue, maybe running the code stand-alone, instead of doing it from
eclipse or trying something else? thank you all