Add some java snippets