当前位置:首页
> Luz 第1331页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论单选题:h0242. 对于val prices = Map("book" -> 5, "pen" -> 2, "sticker" -> 1)结果说法错
对于val prices = Map("book" -> 5, "pen" -> 2, "sticker" -> 1)结果说法错误的是?A.prices("sticker") // 等于 1B.(prices + ("sh…
单选题:h0243. 对于表达式"New York".partition(_.isUpper)返回结果正确的是?
对于表达式"New York".partition(_.isUpper)返回结果正确的是?A.("New", "York")B.("NY", "er ork")C.("er ork", "NY")D.("New York", "NY")答案…
单选题:h0243. 对于表达式"New York".partition(_.isUpper)返回结果正确的是?
对于表达式"New York".partition(_.isUpper)返回结果正确的是?A.("New", "York")B.("NY", "er ork")C.("er ork", "NY")D.("New York", "NY")答案…
单选题:h0244. 对于表达式
对于表达式val tokens = "one two three four two two three four".split(" ")val map = new HashMap[String,Int]for(key <- token…
单选题:h0244. 对于表达式
对于表达式val tokens = "one two three four two two three four".split(" ")val map = new HashMap[String,Int]for(key <- token…
单选题:h0245. 编写一个函数,返回Int数组中最大最小的数字?
编写一个函数,返回Int数组中最大最小的数字?A.def maxmin(nums:Array[Int]){val max = nums.maxval min = nums.min(max, min)}B.def maxmin(nums:Ar…
单选题:h0245. 编写一个函数,返回Int数组中最大最小的数字?
编写一个函数,返回Int数组中最大最小的数字?A.def maxmin(nums:Array[Int]){val max = nums.maxval min = nums.min(max, min)}B.def maxmin(nums:Ar…
单选题:h0246. 对于拉链操作
对于拉链操作val key = Array(1, 2)val value = Array(“one”,”two”)val m = key.zip.toMap返回结果正确的是?A.m(1) 等于 “one”B.m(2) 等于 “one”C.m…
单选题:h0246. 对于拉链操作
对于拉链操作val key = Array(1, 2)val value = Array(“one”,”two”)val m = key.zip.toMap返回结果正确的是?A.m(1) 等于 “one”B.m(2) 等于 “one”C.m…
单选题:h0247. 定义类Countter并实例化如下:
定义类Countter并实例化如下:Class Countter(name:String){ val a = 1 var b = “counter”}val counter = new Countter(“computer”),下列操作…