correct errata of Java tutorial