loading...

re: Keeping your code clean by sweeping out "if" statements VIEW POST

FULL DISCUSSION
 

But Java has Case Switch... 🤔

 

Hi Juan, just don't forget those breaks! 😃 I don't like switch statements at all... But it's more a matter of taste. Thanks for your feedback!

 

Java's new way of switches is a sight to behold. While more verbose, I will probably be using your Map methodology mixed with a new switch come Java 14's release

Didn’t see this new switch yet, I’ll take a look... Thanks for sharing!

Code of Conduct Report abuse