Continue Statement

Continue Statement — skips the current iteration and moves to the next one.

for (int i = 1; i <= 5; i++) {
    if (i == 3) {
        continue;  // Skip the iteration when i equals 3
    }
    System.out.println("Iteration: " + i);
}

Related concepts

Continue Statement

Continue Statement — Structure map

Clickable & Draggable!

Continue Statement — Related pages: