Update TermGenerate.java