Main.java:27: error: -> expected List<Double>Result = newArrayList<Double>(); ^
时间: 2024-02-10 17:49:11 浏览: 196
double 计算过程出现的误差
5星 · 资源好评率100%
This error message indicates that there is a syntax error in the code on line 27. The arrow symbol "->" is not expected in this context.
Based on the code snippet provided, it is likely that there is a missing space between "List<Double>" and "Result" in the code. The correct syntax should be:
List<Double> result = new ArrayList<Double>();
Note the space between "List<Double>" and "result". Additionally, the method should be capitalized as "new ArrayList<>()" instead of "newArrayList<>()".
阅读全文