Contoh program :
public class continue_label {
public static void main(String args[]){
search:
for(int i=0;i<6;i++){
if(i==3){
continue search;
}
System.out.println(i);
}
}
}
Output :
0
1
2
4
5
Tags:
Java
public class continue_label {
public static void main(String args[]){
search:
for(int i=0;i<6;i++){
if(i==3){
continue search;
}
System.out.println(i);
}
}
}