100% Geek The Adventures of Peter Boughton:
CFML; Web Development; Photography.


Archives for December 2008

Switch on String in Java

For anyone working with any other modern language, (such as CFML, C#, JavaScript, Ruby, and more), using a String within a switch-case statement is not an issue, and probably something you've done many times without thinking about.

However, when working in Java you cannot use strings in a switch statement.

Fortunately, despite what many sites suggest, there is a solution - read more...

Posted by Peter on 12-December-08 at 21:50 ~ 3 comments ~ Category: , ,