KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > LabeledStmtTest


1 public class LabeledStmtTest {
2
3     public static void main(String JavaDoc [] args){
4     
5         int i = 0;
6         int j = 0;
7         outer:while (i < 100) {
8         
9             inner: while (j < 100) {
10                 j = j + 1;
11                 if (j * i < 50) continue;
12                 System.out.println(j);
13                 if (j == 75) break inner;
14             }
15              
16             i = i + 1;
17
18             if (i == 20) break outer;
19         }
20     }
21 }
22
Popular Tags