Added new java snippets