Fixing Java tutorial