public class MainClass{ public static void main(String[] argv){ int x = 2; switch (x) { case 2: System.out.println("2"); default: System.out.println("default"); case 3: System.out.println("3"); case 4: System.out.println("4"); } } }
2 default 3 4