Consider the use of continue in loops:
for (int i = 1; i <= 10; i++) {
if (i == 5)
continue;
System.out.println(i);
}
What does the continue statement do in this loop?
Consider the use of continue in loops:
for (int i = 1; i <= 10; i++) {
if (i == 5)
continue;
System.out.println(i);
}
What does the continue statement do in this loop?