Adds java snippets.