Update java.rst

Fix grammar and spelling as needed.