如何在Java中以多循环终止?

时间:2017-09-22 00:59:11

标签: java

关键字'是否会破坏'只跳出一层循环?在这段代码中,有3层循环,我想完全跳出来。有这么容易吗?

while(){

   while(){

       for(){
         if(a==b){
           // I want to jump out of the outer while() loop. 
         }
         }
    }
}
// and the logic continues from this line.

0 个答案:

没有答案