Added getter and setter snippet to java snippets