Commit d503db91 authored by yanzg's avatar yanzg

打印模板处理

parent c435aa7a
...@@ -7,7 +7,7 @@ public class TestCalcHelper { ...@@ -7,7 +7,7 @@ public class TestCalcHelper {
@Test @Test
public void test() { public void test() {
System.out.println(CalcHelper.calc("2 * ( a + b * d )", new CalcHelper.CalcParameter() { System.out.println(CalcHelper.calc("120 + 2 * ( a + b * d )", new CalcHelper.CalcParameter() {
@Override @Override
public double getValue(String parameterName) { public double getValue(String parameterName) {
switch (parameterName){ switch (parameterName){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment