Add some Java snippets.
upgrade submodules