title: Stack Overflow Error java
body: <p>I'm trying to solve a problem that calls for recursive backtracking and my solution produces a stackoverflow error. I understand that this error often indicates a bad termination condition, but my ternimation condition appears correct. Is there anything other than a bad termination condition that would be likely to cause a stackoverflow error? How can I figure out what the problem is?</p>
  
  <p>EDIT: sorry tried to post the code but its too ugly..</p>