// Use continue with a label.
class ContToLabel {
	public static void main(String args[]) {
	
outerloop:
		for(int i=1; i < 10; i++) {
			System.out.print("\nOuter loop pass " + i + ", Inner loop: ");
			
			for(int j = 1; j < 10; j++) {
				if(j == 5) continue outerloop; // continue outer loop
				System.out.print(j);
			}
		}
	}
}

Use continue with a label
Use continue with a label