Resource leak: ‘scanner‘ is never closed,Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace,Access restriction: The constructor ‘JFrame(String)‘ is not API (restriction on required library ‘C:,eclipse,jdk,java...
文章浏览阅读2.1k次。一:类和构造函数1. 类和构造函数object A { def main(args: Array[String]): Unit = { val xiaoMing = new Boy("xiaoming", 20) val xiaoGang = new Boy("xiaoGang", 18, "china") println(xiaoMing) pri..._scala面向对象【i......