You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TrySwitch.java 413B

1234567891011121314151617181920212223242526
  1. public class TrySwitch {
  2. public static void main(String[] args) throws Throwable {
  3. m(10);
  4. }
  5. static boolean done = true;
  6. static int m(int i) {
  7. try {
  8. switch(i) {
  9. default: return 10;
  10. case 10:
  11. if (false) {
  12. break;
  13. } else {
  14. throw new RuntimeException();
  15. }
  16. case 11: break;
  17. }
  18. } catch (Throwable e) {
  19. System.err.println("caught: " + e);
  20. }
  21. return 33;
  22. }
  23. }