A better StringTokenizer

I've just been reminded how painful it can be splitting a string based on a token with StringTokenizer. The problem is that it gets messy when you have two tokens consecutively. Luckily commons-lang comes to the rescue with StrTokenizer - where empty tokens may be removed or returned as null.

Popular posts from this blog

AspectJWeaver with JDK 7 - error - only supported at Java 5 compliance level or above

Intellij tip - Joining multiple lines into one

JUnit parameterized test with Spring autowiring AND transactions