You are not logged in. Lock_open    

Browse tutorials by Tag - infiniteloop

Infinite Loop (Eclipse) Time: 5:09 Gb
Average:
  • Currently 3.1/5 Stars from 49 ratings
  •  
  •  
  •  
  •  
  •  
49 ratings
Your Rating:
  • Currently 0.0/5 Stars from 49 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Loop Logic Error Debugging Process Eclipse
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.

Missing Input Statement (BlueJ) Time: 3:12 Gb
Average:
  • Currently 3.1/5 Stars from 50 ratings
  •  
  •  
  •  
  •  
  •  
50 ratings
Your Rating:
  • Currently 0.0/5 Stars from 50 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Loop Logic Error BlueJ
Description: click for more...

This video shows an infinite loop that occurs due to a lack of an input statement inside a validation loop. A prompt and a scan is used before the loop, but the code inside the loop only has a prompt. It points out the infinite loop and shows the addition of a read statement to fix the problem.