int i=3; switch(i) { case 1: System.out.println(1); break; case 2: System.out.println(2); break; default: System.out.println("default"); }