Reformated A3 for Handin and bug fix
This commit is contained in:
24
Assignment-3 Reformated/Test.java
Normal file
24
Assignment-3 Reformated/Test.java
Normal 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();
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user