示例: import org.nfunk.jep.JEP; JEP myPrase=new JEP(); myPrase.parseExpression("5+1+6"); double a=myPrase.getValue(); System.out.println(a);