public static void main(String[] args) {
		try {
			ExpressionEvaluator ee = new ExpressionEvaluator(
				    "c > d ? c : d",                     // expression
				    int.class,                           // expressionType
				    new String[] { "c", "d" },           // parameterNames
				    new Class[] { int.class, int.class } // parameterTypes
				);
			
			// Evaluate it with varying parameter values; very fast.
			Integer res = (Integer) ee.evaluate(
			    new Object[] {          // parameterValues
			        new Integer(10),
			        new Integer(11),
			    }
			);
			System.out.println("res = " + res);
		} catch (CompileException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ScanException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
			 
			
	}