This question does not show any syntax highlighting although the code seems ok to me.
Tested with FF 3.6.15 and IE 8.0.
Either add the java tag to the question, or add the following language hint to the top of your code block:
<!-- language: java -->
3 years ago