//break跳出內循環
package test;public class ForBreak { public static void main(String[] args) {
int i=
For
For
if(i>
System
i
System
break;//jump out inner
}
if (i %
System
break For
} else if (i %
System
break For
}else{
System
}
}//end for
System
}//end for
System
System
}}
==========================
輸出
i%
for
i>
i
for
i%
for
i%
for
exit
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26406.html