私は速度コンテキストに1つのメソッドを入れようとしています:
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.
... ... "-" ... "+" ... "*" ... "/" ... "%" ... "&&" ... "|| " ... "<" ... "<=" ... ">" ... ">=" ... "==" ... "!=" ... ...
問題はどこだ ?