fixed java syntax highlighting

Added java syntax highlighting in the second code snippet.