KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SwitchNoBreaks


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