Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: gitlab_custom_domain project_68_bot_70961dd7bb00a9e0ec53b498f7f5119f@noreply.gl.bito.ai
Summary by Bito
This pull request modifies LoopBugsDemo.java to introduce intentional bugs in loop constructs, such as syntax errors and infinite loops, for demonstration purposes. It changes for, while, and do-while loop conditions to create problematic behaviors.
Detailed Changes
- Introduces a syntax error by changing the for loop condition from 'i >= 0' to 'i = 6' (assignment instead of comparison) in LoopBugsDemo.java
- Modifies the while loop condition from 'x < 5' to 'x >= 5', potentially creating an infinite loop in LoopBugsDemo.java
- Alters the do-while loop condition from 'value < 10' to 'value >= 10', resulting in an infinite loop in LoopBugsDemo.java
- Reduces nested for loops from 'i < 1000, j < 1000' to 'i <= 10, j <= 10' in LoopBugsDemo.java
Edited by prajakta bendre