Update JAVA CODE