1 package cn.sice; 2 3 public class OutMultFor 4 { 5 6 public static void main(String[] args) 7 { 8 boolean flag = true; 9 hh: for (int i = 0; i < 10 && flag; i++) 10 { 11 ss: for (int j = 0; j < 10; j++) 12 { 13 System.out.println(i + "," + j); 14 if (i == 5 && j == 5) 15 { 16 flag = false; 17 break; 18 } 19 // break hh; 20 // break ss; 21 } 22 } 23 } 24 25 }
原文:http://www.cnblogs.com/linson0116/p/3541033.html