2
常規錯誤,當我嘗試運行下面的代碼我得到一個錯誤:在命令行groovyConsole中
+++++++++++++++++++++++ +++++++++++++
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)
任何想法的問題可能是什麼?
ironmantis7x
很奇怪......本書中的教程展示了使用1st作爲變量!我採納了你的建議,一切都很好!謝謝!! – ironmantis7x
@ ironmantis7x:哪本書/哪個教程?請通知作者! – Jayan
@傑弗裏:這是一張refcardz備忘單 – ironmantis7x