MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    int i = 0;
    while (i < 10) {
      if (i == 4) {
        i++;
        continue;
      }
      System.out.println(i);
      i++;
    }  
  }
}

Result:
0
1
2
3
5
6
7
8
9