void () { final int x = 2; Label: if(x == 4 || x == 3) { // test comment System.out.println("1"); } else if(x == 5 || x == 6) { System.out.println("2"); } else { System.out.println("3"); } // test that the first and ssecond blocks remain wrapped if(x == 4 || x == 3) { int y = 3; System.out.println("1"); } else if(x == 5 || x == 6) { int y = 4; System.out.println("2"); } else { System.out.println("3"); } // test that the first block remains wrapped, but the second doesn't if(x == 4 || x == 3) { int y = 3; System.out.println("1"); } else if(x == 5 || x == 6) { for(int y = 0; y < 100; y++) { System.out.println("Barangus!"); } System.out.println("2"); } else { System.out.println("3"); } for(; ;) { if(x == 4 || x == 3) { // test comment System.out.println("1"); break; } else if(x == 5 || x == 6) { System.out.println("2"); } else { System.out.println("3"); } } }