Update and rename Test.java to Test_0.java

This commit is contained in:
Mandeep Moun
2025-10-28 22:11:00 -06:00
committed by GitHub
parent 510fa793c8
commit 1a06ed91e3

View File

@@ -0,0 +1,21 @@
public class Test_0 {
public int methodForLoop() {
int val = 1;
for (int i = 0; i < 10; i++) {
val += 1;
if (val == 5) {
val = 5;
} else if (val < 5) {
val = 3;
}
}
return val;
}
int result = this.methodForLoop();
}