You are not logged in. Lock_open    

Browse tutorials by Tag - loop

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.

While Loop Doesn't Execute (Command Line) Time: 2:20 Gb
Average:
  • Currently 3.1/5 Stars from 44 ratings
  •  
  •  
  •  
  •  
  •  
44 ratings
Your Rating:
  • Currently 0.0/5 Stars from 44 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Array Loop Logic Error Command Line
Description: click for more...

While loop that either loops continually and never stops, appears to execute once, or doesn’t execute at all.