KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SwitchOrderTest2


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