
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 👉 openjdk.org/jeps/441
English