Update java.md

Really basic things I've looked up too many times and forgotten by now