1 object HelloScala{
2 def main(args : Array[String]){
3 println("hello scala")
4 }
5 }
HelloScala$.class是HelloScala.scala的所属类
HelloScala.class 是HelloScala.scala的伴生类
标签:String,scala,args,hello,HelloScala,class
来源: https://www.cnblogs.com/rainbow-1/p/15741090.html