资讯

Two OpenJDK draft proposals would enhance the expressiveness of pattern matching in Java and boost data-oriented queries, potentially previewing in Java 17.
JEP 443, Unnamed Patterns and Variables (Preview), has been Completed from Targeted status for JDK 21. This preview JEP proposes to "enhance the language with unnamed patterns, which match a ...
Java’s character and assorted string classes offer low-level support for pattern matching, but that support typically leads to complex code. For simpler and more efficient coding, Java offers ...