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
Blog Seputar Pemrograman Java, Android, iOS, Web, Database, Teknik Komputer dan Jaringan, Artikel, Agama dan Lain-lain
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); } } }
0 Komentar
Penulisan markup di komentar