Reformated A3 for Handin and bug fix

This commit is contained in:
Mann Patel
2025-10-28 22:22:05 -06:00
parent 8639c132a5
commit 0676f50e83
22 changed files with 551 additions and 13 deletions

View File

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