题目内容
(请给出正确答案)
[主观题]
对于表达式val tokens = "one two three four two two three four".split(" ") val map = new HashMap[String,Int] for(key <- 1 tokens){ map(key)="map.getOrElse(key,0)" + }> A、map(“one”) 等于 2
B、map(“two”) 等于 2
C、map(“three”) 等于 3
D、map(“four”) 等于 2
如搜索结果不匹配,请 联系老师 获取答案