A switch on String idiom for Java

By Bozhidar

I’ve always been frustrated with the inability to write a switch on String in Java.  However the enum type introduced in Java 5.0 somewhat diminishes the issue. Read this excellent article on the subject.

Tags:

Leave a Reply