当我尝试运行以下代码时,出现错误:
++++++++++++++++++++++++++++++++++++++++
groovy:000> 1st = [1, 2, 3]
++++++++++++++++++++++++++++++++++++++++
这是我得到的错误:
ERROR groovy.lang.MissingMethodException:
No signature of method: java.lang.Integer.call() is applicable for argument types: (java.util.ArrayList) values: [[1, 2, 3]]
Possible solutions: wait(), any(), abs(), wait(long), any(groovy.lang.Closure), and(java.lang.Number)
at groovysh_evaluate.run (groovysh_evaluate:2)
任何想法可能是什么问题?
铁螳螂7x