Browse tutorials by Tag - infiniteloop
Infinite Loop (Eclipse)
Time: 5:09
|
|
| Average: 49 ratings | Your Rating: |
| 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
|
|
| Average: 50 ratings | Your Rating: |
| 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. |
|