Scala:HelloWorld
摘要:
代码1 object HelloWorld {2 def main(args: Array[String]): Unit = {3 println("Hello world") 4 }5 }解说object关键字相当于static(更确切的说法是单例模式的一种语言层面... 阅读全文
posted @ 2015-01-01 20:21 幸福框架 阅读(8458) 评论(0) 推荐(0)
posted @ 2015-01-01 20:21 幸福框架 阅读(8458) 评论(0) 推荐(0)