(think)

An online novel about the Source, the Force, the real life and everything in between...

A Switch on String Idiom for Java

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.

Update

Java 7 now supports switch on String!