执行如下代码:
package com.yrz.spark.scala.base
/**
* <Description> <br>
* @author yaj<br>
* @version 1.0<br>
* @CreateDate 2018-01-12 17:34 <br>
* @see com.yrz.spark.scala.base <br>
*/
object HelloScala {
/**
* @param args
*/
def main(args: Array[String]): Unit = {
println("Hello Scala") //在控制台打印Hello Scala 字符串并且换行
println(args.length)
}
}
打印结果如下:
Hello Scala
3
Process finished with exit code 0