Java code update