2
誰でも次のエラーを説明できますか?単純なプログラム "予期しないトークン"のGroovyエラー
Joe-iMac-2:Desktop joe$ groovy ExampleTest.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/Users/joe/Desktop/ExampleTest.groovy: 2: unexpected token: in @ line 2, column 19.
print “Please key in a word: “
^
1 error
私のコード:)感謝はこれです:
String str
print “Please key in a word: “
str = System.console().readLine()
println “The word was: “ + str
print “Now please key in another: “
str = System.console().readLine()
print = “And this one was: “ + str
Microsoft Wordが良いIDEではないと言いますか? –