/* Loops14.java CIS 160 David Klick 2004-09-22 Demonstrates labeled break */ public class Loops14 { public static void main(String[] args) { int i, j; outer: for (i=1; i<=4; i++) { for (j=1; j<=4; j++) { if (j == 2) break outer; System.out.println(i + "," + j); } } } } /* Sample output: 1,1 */