KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SwitchNoDefault


1 public class SwitchNoDefault {
2
3     public static void main (String JavaDoc [] args) {
4     
5             int i = 9;
6
7             switch (i) {
8             
9                 case 1: {
10                             System.out.println("9==1");
11                         }
12                 case 9: {
13                             System.out.println("9==9");
14                         }
15             }
16     }
17 }
18
Popular Tags