KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > WeirdSwitch


1 public class WeirdSwitch {
2
3     public static void main(String JavaDoc [] args) {
4         switch (args.length + 0x7ffffff2) {
5             case 0x7ffffff0:
6             case 0x7ffffff1:
7             case 0x7ffffff2:
8             case 0x7ffffff3:
9                System.out.print("OK");
10                break;
11             default:
12                System.out.print("NOT_OK");
13         }
14
15     }
16 }
17
Popular Tags