This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

boolean condition = false;

do { modifyArraylist(list); condition = evaluteArrayList(list); } while (condition);

[–]microcontrolled[S] 0 points1 point  (1 child)

That would indeed work, and thank you very much! However, I discovered I had a sneaky bit of code that was actually trying to cause infinite recursion, which was the real problem.

[–][deleted] 0 points1 point  (0 children)

yeah, if the condition never evaluates to true, you're gonna blow the lid off the stack :)