update Java code (12/16)