adding snippets for java and updating the path in bashrc