Fix typo in Java enumerate example