object Test{
def main(args : Array[String]): Unit ={
val str : String = "hello 123"
for(c <- str)
println(c)
}
}
Scala中的for循环
原创
©著作权归作者所有:来自51CTO博客作者说文科技的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Spark学习笔记之二
下一篇:Java连接数据库操作
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Scala 运算符Scala
-
Java中for循环使用方式的比较
Java中for循环使用方式的比较
for循环 Java -
scala中怎么跳出循环
在java中跳出循环的时候,我们可以直接break就行了,但是在scala
scala break 跳出循环 ide java -
【Scala】Scala-循环与遍历
Scala-循环与遍历
Scala-循环与遍历 其他 -
Android ajax跨域
(一):动态脚本注入的方法.即在页面中动态生成<script>脚本标签,另其src指向其它域的js文件(即是src属性为不同域的URL). (一般用于不同域之间的跨域) var scriptElement = document.createElement('script'); scriptElement.src = 'URL'; sc
Android ajax跨域 ajax xmlhttprequest function 脚本