01: import javax.swing.JOptionPane;
02: 
03: /**
04:    This program tests the expression evaluator.
05: */
06: public class EvaluatorTest
07: {
08:    public static void main(String[] args)
09:    {
10:       String input = JOptionPane.showInputDialog("Enter an expression:");
11:       Evaluator e = new Evaluator(input);
12:       int value = e.getExpressionValue();
13:       System.out.println(input + "=" + value);
14:       System.exit(0);
15:    }
16: }