这段稳定的 Java 21 程序会输出什么?

来自 Java 21 特性
Java 25 LTS 入门 2分钟

这段稳定的 Java 21 程序会输出什么?

Java
public class PredictPattern {
    record Parcel(String city, int days) {}

    static String label(Object value) {
        return switch (value) {
            case Parcel(String city, int days) when days <= 2 -> city + ": express";
            case Parcel(String city, int days) -> city + ": " + days + " days";
            case null -> "missing";
            default -> "other";
        };
    }

    public static void main(String[] args) {
        System.out.println(label(new Parcel("Paris", 3)));
    }
}
在试验场中打开
报告错误