wrong variable name in Java example