updating the java file