// "Replace with 'switch' expression" "true-preview"
import java.util.*;

class SwitchExpressionMigration {
  private static String m(int n) {
      return switch (n) {
          case 1 -> "a";
          case 2 -> throw new NullPointerException();
          default -> "?";
      };
  }
}