Update java code and the README.md file.