Java - Decision Control and looping statement - continue Tutorial
Continue
statement breaks only one iteration in the loop, if a specified condition occurs, and continues with the next iteration in the loop.
public class ContinueExample {
public static void main(String[] args) {
//using for loop
for(int i=0;i<=5;i++){
if(i==3){
//breaking the loop
continue;
}
System.out.println(i);
}
}
}