- 链接地址:https://blog.csdn.net/cm_chenmin/article/details/52811082
- 链接标题:scala-数组_scala遍历数组和数组缓冲-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8623
文章浏览阅读285次。定长数组Array:定义数组例子:val nums = new Array[Int](10)val a = new Array[String](10)val s = Array("hello","world")s(0) = "Goodbye" //使用()而不是[]来访问元素变长数据:数组缓冲import scala.collection.mutable.Arr_scala遍历数组和数组缓冲
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除