fixed typo in java code