fixed typo in java