Found error in testsuite fo continue

This commit is contained in:
ahmad 2024-06-28 17:59:11 +02:00
parent eac411972a
commit fbe8280e30

View File

@ -3,9 +3,11 @@ public class Continue {
public void continueLoop(boolean shouldContinue) {
this.repetitions = 0;
for (int i = 0; i < 5; i+=1) {
// the second condition has to be in brackets
if (shouldContinue && i == 3) {
continue;
}
// repetition is a field variable, it should be retrieved with this
repetitions += 1;
}
}