Update java.rst

Fix spelling and grammar as needed.