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