modify the Java code created by jfunct