fix errata of Java tutorial

Corrected errata of Java tutorial. Thank you!