/* Loops11.java CIS 160 David Klick 2004-09-22 Demonstrates break and continue */ public class Loops11 { public static void main(String[] args) { int i, j; for (i=1; i<=6; i++) { if (i == 4) break; System.out.println("i = " + i); } for (j=1; j<=6; j++) { if (j == 4) continue; System.out.println("j = " + j); } } }