5.8.10.The default case doesn't have to come at the end of the switch.
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");
}
}
}