legacy - 2
Summary by Bito
This PR introduces new Java files and modifies existing ones to provide examples of loop constructs, including some with intentional bugs for demonstration purposes. It adds class wrappers for compilability and updates loop implementations.
Detailed Changes
- Introduces demo.java with examples of various loop constructs, including intentional bugs like infinite loops and array bounds errors.
- Adds proper class and main method structure to loop.java for input validation using a while loop.
- Includes loop2.java demonstrating a simple counting while loop.
- Updates the counting loop in demo.java from while to for syntax.
Edited by gitlab_custom_domain