public static void main (String []args){
//外層循環,outer作爲標識符
outer:
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
System.out.println(i+"---"+j);
//當j=2時結束outer標識符指定的循環
if(j==2){
break outer;
}
}
}
}
public static void main (String []args){
//外層循環,outer作爲標識符
outer:
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
System.out.println(i+"---"+j);
//當j=2時結束outer標識符指定的循環
if(j==2){
break outer;
}
}
}
}
主動喊你的大概率不會是好事。好事一般都是藏着那,不讓你發現。 有時候讓人篤定是凝聚團隊戰鬥力的一種方法,鼓舞士氣的一種手段。是否篤定要看資源的投入。
1. 查看函數地址 勾選 “Link to binary”. https://godbolt.org/z/v5bGqEv48