/* Use the continue statement to skip (i.e. jump to the end of) a loop iteration. */ int x = 0; while (++x < 6){ if (x == 3){ continue; //use this } System.out.print(x + " "); } // result: 1 2 4 5