class C { String foo(int n) { return switch (n) { case 1 -> Integer.toString(n); case 2 -> { yield Integer.toString(n); } case 3 -> throw new RuntimeException(); case 4 -> { throw new RuntimeException(); } case 5 -> { yield "a";} default -> "b"; }; } }