KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > LabelDo


1 public class LabelDo {
2
3     public static void main(String JavaDoc [] args) {
4         int x = 0;
5         one: do {
6                  x++;
7                  if (x > 5) break one;
8                  System.out.println(x);
9              }while (true);
10     }
11 }
12
13
Popular Tags