Jumat, 01 April 2011
public class ContinueBerlabel {
public static void main(String[] args) {
int i = 0, j = 0;

labelWhile:
while (i < 5) {
System.out.print(i + " : ");
j = 0;
while (j < 5){
if (i + j == 5) {
i++;
System.out.println("");
continue labelWhile;
}

System.out.print(j + " ");
j++;
}

System.out.println("");
i++;
}
}
}

0 komentar:

Posting Komentar

IKLAN

About Me

Total Tayangan Halaman

Diberdayakan oleh Blogger.

Entri Populer

Pengikut