renew Java code