fixed java code so it is a valid statement