2016年9月17日

摘要: Traits as Interfaces Let’s start with something familiar. A Scala trait can work exactly like a Java interface. For example: A subclass can provide an 阅读全文
posted @ 2016-09-17 17:36 chaseblack 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Reading Lines To read all lines from a file, call the getLines method on a scala.io.Source object: The result is an iterator (see Chapter 13). You can 阅读全文
posted @ 2016-09-17 11:48 chaseblack 阅读(152) 评论(0) 推荐(0) 编辑

导航