如果我輸入的readline我得到一個錯誤,如下所示:斯卡拉:進口scala.io.StdIn.readLIne - 錯誤導入
import scala.io.StdIn.{readline, readInt}
=>
error: value readline is not a member of object scala.io.StdIn
import scala.io.StdIn.{readline, readInt}
- Scala代碼版本亞軍2.12.1
如果我不導入此,我得到一個過時的消息:
warning: there was one deprecation warning (since 2.11.0); re-run with -deprecation for details
one warning found
我沒有得到任何錯誤,如果我使用填充路徑功能:
var x = scala.io.StdIn.readLine.toInt
讓我知道如果你能幫助我解決了進口。謝謝。
駱駝情況下,它... –
是的感謝。斯卡拉新手,輕微的疏忽。 – carlolm