Your very welcome.
Always make sure there is a way out of a loop. The if without an else left a hole in the logic.
Type: Posts; User: Norm
Your very welcome.
Always make sure there is a way out of a loop. The if without an else left a hole in the logic.
Sorry, I have told you how to find the error. What I suggested is exactly what I did to find the error.
It can take a few minutes but I'm sure you will find it. You should know how to find bugs in...
If you add enough printlns in your code you will get more visual help than you need. It will show you where the loop is and why.
Add some println statements to see where the execution flow goes...
Add some println statements to see where the execution flow goes and the value of variables as they change. If there is a loop, it will show in the printed output