1 package org.test.javase.base; 2 3 /** 4 * Created by sherry on 2014/12/9 0009 15:40. 5 */ 6 public class TestBreak { 7 8 public static void main(String[] args) { 9 outer: 10 for (int i = 0;i < 10;i++){ 11 for (int j = 0;j < 5;j++){ 12 System.out.println("i="+i+" - j="+j); 13 if (j == 3){ 14 break outer; 15 } 16 } 17 } 18 } 19 }