摘要:
1、两个数组的咬合操作(拉链操作) object helloworld { def main(args: Array[String]) { val husband = Array("牛郎","李亚鹏","张杰"); ... 阅读全文
摘要:
1、map映射import scala.collection.mutable._//如果要定义一个map为可变的需要导入mutable包 object helloworld { def main(args: Array[String]) { ... 阅读全文
摘要:
1、list类型和buffer的自动转换import scala.collection.mutable.ArrayBuffer import scala.collection.JavaConverters.asScalaBuffer import... 阅读全文
摘要:
1、数组的定义和取值object helloworld { def main(args: Array[String]) { //java: int[] arr = new int[10]; // int[] arr = ... 阅读全文
摘要:
1、过程没有返回值和等号object helloworld { def main(args: Array[String]) { def out(a:Int): Unit ={ println("打印输出a****"+a); } ... 阅读全文