于是,在面对这种场景的时候,Java 17对 switch 做了增强,然后我们就可以这样来写: switch (data.get("key1")) { case String s -> log.info(s); ...
確定! 回上一頁