Update javaapi-tutorial.md

token can't be passed without beeing declared