下面的代碼不能被編譯由於「找不到符號 符號:類aNewRulesEngine 位置:類org.jeasy.rules.core.RulesEngineBuilder」簡單的規則:無法解析aNewRulesEngine()
然而,判斷通過本教程https://github.com/j-easy/easy-rules/wiki/fizz-buzz它應該沒問題。
任何想法爲什麼它會變酸?
import org.jeasy.rules.api.RulesEngine;
import org.jeasy.rules.core.RulesEngineBuilder;
public class Main {
public static void main(String[] args) {
RulesEngine rulesEngine = new RulesEngineBuilder.aNewRulesEngine();
}
}
刪除'new'關鍵字... –