我正在尝试将一种方法放入速度上下文中:
ctx.put("round", roundServiceTime(serviceTimeRound));
public int roundServiceTime (int serviceTimeRound) {
double sum = serviceTimeRound/60;
this.serviceTimeRound = (int)Math.ceil((double)sum);
return serviceTimeRound;
}
错误行:#set($val = $round(90))
并得到错误:
Encountered "(" at line 175, column 20.
期待以下之一: ... ... “-” ... “+” ... “*” ... “/” ... “%” ... “&&” ... “|| " ... "<" ... "<=" ... ">" ... ">=" ... "==" ... "!=" ... ...
问题出在哪里 ?