class Break {
public static void main(String[] args) {
int i,j;
nyo:
for (i = 0; i < 3; i++) {
for(j=0 ; j < 3; j++){
System.out.println("I = " + i +", J = " + j + "PRINCE TARO");
if (j==1) break nyo;
}
}
System.out.println("\nKAKKOI !!");
}
}
Output :
I = 0, J=0 PRINCE TARO
I = 0, J=1 PRINCE TARO
KAKKOI !!
0 komentar:
Posting Komentar