This folder demonstrates different control flow mechanisms in Java, including conditional statements and looping constructs.
Conditional logic (if, else if, else)
Loops (for, nested loops)
Switch-case structure
| File | Description |
|---|---|
| IfElseDemo.java | Uses if–else for grade classification. |
| ForLoopDemo.java | Demonstrates loops with sum and pattern generation. |
| SwitchCase.java | Menu-based calculator using switch-case. |
javac *.java
java IfElseDemo