switch (x){
case 0:
switch (y){ //执行到这里就跳出去了,我靠,Java不支持switch嵌套?
case 0:
int j;
j=0;
break;
case 1:
int m;
m=0;
break;
}
break;
case 1:
break;
}
...全文
35373打赏收藏
Java真的不支持switch嵌套吗?那就太没意思了
int x=0,y=0; switch (x){ case 0: switch (y){ //执行到这里就跳出去了,我靠,Java不支持switch嵌套? case 0: int j; j=0; break; case 1: int m; m=0; break; } break; case 1: break; }