Continue statement is used to continue the loop. It continues the current flow of the program and skips the remaining code at specified condition.
public static void main(String args[]){
for (int j=0; j<=6; j++)
{
if (j==4)
{
continue;
}
System.out.print(j+” “);
}
}