update the java file