/Users/lyon/j4p/src/bookExamples/ch02DataTypes/ForContinue.java

1    package bookExamples.ch02DataTypes; 
2     
3    /** 
4     * DocJava, Inc. 
5     * http://www.docjava.com 
6     * Programmer: dlyon 
7     * Date: Sep 8, 2004 
8     * Time: 7:07:38 PM 
9     */ 
10   public class ForContinue { 
11       public static void main(String[] args) { 
12           start: for (int j = 0; j < 3; j++) 
13               for (int i = 0; i < 10; i++) { 
14                   System.out.println("i,j=" + i+","+j); 
15                   if (i == 5) continue start; 
16               } 
17       } 
18   } 
19