test

Java code posted
created at 04 Sep 22:13, updated at 29 Sep 01:58

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 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("");
                 }
for (int x = 0; x < 9; x++) {
System.out.println(x);
}
              }
540 Bytes in 3 ms with coderay