/* program  Break.java to demonstrate labelled break */
class Break {
	public static void main(String[] args) {
	int	j,k;	

outer:
	for(j = 0; j < 5; ++j) 
		for(k = 0; k < 3; ++k) {
			System.out.println("j & k " + j +" " +k);
		if(k == 1)
			break outer;
		}

System.out.println("Outer loop also exited. Now watch it without label");
	for(j = 0; j < 5; ++j) 
		for(k = 0; k < 5; ++k) {
			System.out.println("j & k " + j +" " +k);
		if(k == 1)
			break;
		}
	}
}

