Examine this loop with a conditional if statement:
for (int i = 1; i <= 10; i++) {
if (i != 5)
System.out.println(i);
}
How does this differ from using continue?
Examine this loop with a conditional if statement:
for (int i = 1; i <= 10; i++) {
if (i != 5)
System.out.println(i);
}
How does this differ from using continue?