20 import ca.uqac.lif.cep.functions.Function;
21 import ca.uqac.lif.cep.functions.FunctionException;
22 import ca.uqac.lif.cep.util.Numbers;
32 public static void main(String[] args)
throws FunctionException
42 Function add = Numbers.addition;
47 Object[] inputs =
new Object[]{2, 3};
52 Object[] values =
new Object[1];
57 add.evaluate(inputs, values);
61 float value = (Float) values[0];
62 System.out.printf(
"The value is %f\n", value);
Add two numbers with the Addition function.