@Test public void calculate() { String formula = "2 * 4 + 3"; BigDecimal value = Calculator.calculate(formula); Assert.assertEquals(new BigDecimal(11), value); }
public BigDecimal calculate(String formula) { return calculate(formula, null); }
Calculator { public BigDecimal calculate(String formula) { return calculate(formula, null); } }
Calculator { public BigDecimal calculate(String formula) { return calculate(formula, null); }  }
Calculator { public BigDecimal calculate(String formula) { return calculate(formula, null); }  BigDecimal calculate(String formula); BigDecimal calculate(String formula, Object data); BigDecimal calculate(String formula, Object data, int scale); }
Calculator { public BigDecimal calculate(String formula) { return calculate(formula, null); }  BigDecimal calculate(String formula); BigDecimal calculate(String formula, Object data); BigDecimal calculate(String formula, Object data, int scale);  }