日期:2014-05-20 浏览次数:20765 次
public class Test { static String o = ""; public static void main(String[] args) { z: o = o + 2; for (int x = 3; x < 8; x++) { if (x == 4) break; if (x == 6) break z; o = o + x; } System.out.println(o); } }
public class Test { static String o = ""; public static void main(String[] args) { for (int i = 0; i < 7; i++) { z:for (int x = 3; x < 8; x++) { if (x == 6) break z; o = o + x; } System.out.println(o); } } }