![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Scala
熊铁树
这个作者很懒,什么都没留下…
展开
-
IDEA写Scala报错:Exception in thread "main" java.lang.NoClassDefFoundError: scala/tools/nsc/interpreter/
因为是初学,想写个最简单的练手,结果报错:class test { def main(args: Array[String]): Unit = { println("Hello, Scala!") }}最初以为是版本问题折腾半天,结果发现是低级错误。在新建一个scala时要选择objectobject test { def main(args: Array[St...原创 2020-03-08 15:48:04 · 517 阅读 · 1 评论 -
Scala error: not found: value readLine错误
今天学习Scala语法,在跟着视频里写代码:val name = readLine()时竟然报错:上网查资料发现因为版本更新,readLine()旧方法被删除了,新的为:val name = scala.io.StdIn.readLine诶,先在技术迭代太快了,还来不及学就过时了...原创 2020-02-28 17:47:02 · 2574 阅读 · 0 评论