Main.java:27: error: -> expected List<Double>Result = newArrayList<Double>(); ^
时间: 2024-02-10 19:56:03 浏览: 79
This error message indicates that there is a syntax error on line 27 of the Main.java file, specifically that there is an unexpected symbol (in this case, "->") and the compiler was expecting a different symbol.
The likely cause of this error is a typo or mistake in the code. One possible issue is that the method name "newArrayList" may not be recognized by the compiler, and instead should be written as "new ArrayList<>()". Additionally, there may be missing parentheses or other syntax errors in the line of code.
To resolve this error, carefully review the code on line 27 and check for any syntax errors or typos. Ensure that any method or variable names are spelled correctly and that all necessary symbols (such as parentheses and semicolons) are present in the correct places.
阅读全文