public static void main(String[] args) { aaa: for (int j = 0; j < 2; j++) { System.out.println("--j-->"+ j); bbb: for (int i = 0; i < 2; i++) { System.out.println("--i-->"+ i); if(i==0){ break bbb; } } } }