update my java code