??Java?????????????????????????
???????????? ???????[ 2015/11/17 11:52:47 ] ??????????????? ???????????
??????Java?У???????????????????????????????????????????????????????????????????????б???break ??????????????????????磺
ok:
for(int i=0;i<10;i++) {
for(int j=0;j<10;j++) {
System.out.println(“i=” + i + “??j=” + j);
if(j == 5) break ok;
}
}
for(int i=0;i<4;i++){
for(int j=0;j<5;j++){
System.out.println("i="+i+"; j="+j);
if(j==3){
i=4;
break;
}
}
}
????????????????????????????????????????????????????????????????????????????????????磬??????????в????????????
int arr[][] = {{1??2??3}??{4??5??6??7}??{9}};
boolean found = false;
for(int i=0;i<arr.length && !found;i++) {
for(int j=0;j<arr[i].length;j++){
System.out.println(“i=” + i + “??j=” + j);
if(arr[i][j] == 5) {
found = true;
break;
}
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11