Pattern matching for switch in modern Java...
Java
Visit on X576K followers
21,499 views
Pattern matching for switch in modern Java...
Check the type and bind a variable in one step. No casts, no chained instanceof.
🚨 This is just a code snippet from codebysophy! 🚨
Want to learn more about JEP 441? Check out the link 👉
Comments
Comments from the original post on X (Twitter)
No comments yet
