Added java mode with snippets.