标签:nbsp var cal foreach while length rgs int scala
1.
//args.foreach(arg => println(arg))
args.foreach(println)
2.
var i = 0
while(i < args.length) {
println(args(i))
i += 1
}
3.
for(arg <- args)
println(arg)
标签:nbsp var cal foreach while length rgs int scala
原文地址:http://www.cnblogs.com/shengyang/p/6069110.html