You are not logged in. Lock_open    

Browse tutorials by Tag - advancementerror

Infinite Loop (BlueJ) Time: 6:41 Gb
Average:
  • Currently 3.1/5 Stars from 62 ratings
  •  
  •  
  •  
  •  
  •  
62 ratings
Your Rating:
  • Currently 0.0/5 Stars from 62 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Loop Logic Error Debugging Process BlueJ
Description: click for more...

Shows an infinite loop that occurs due to lack of update of a loop iterator inside an if statement in the loop. It identifies that an infinite loop is happening when the program does not seem to end. It then shows how to insert print statements to output the iterator value at the beginning of the loop, and then again at the end of the loop.