class SwitchExample { public static void main(String args[]){ int x = 0; switch(x) { case -1: System.out.println(" x = -1"); break; case 0: System.out.println(" x = 0"); break; // comment/remove this break and see what happens! case 1: System.out.println(" x = 1"); break; default: System.out.println(" default (x is something else)"); } // End switch } // End main() } // End class SwitchExample