test
Java
code posted
created at 04 Sep 22:12
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 |
public void calculate() { try { jep.parseExpression(line.text()); results.append( line.text()+"=<b>"+Double.toString(jep.getValue())+"</b>"); } catch(Exception pe) { results.append("Invalid Expression: "+line.text()); } finally { line.setText(""); } } |
482 Bytes in 3 ms with coderay