object functionDemo{ def showmsg2(name:String,s:String*):Unit={ println(name) //wjj println(s.getClass) //class scala.collection.mutable.WrappedArray$ofRef for(str<-s){ println(str) //kb15,kb16 } } showmsg2("wjj","kb15","kb16") }
欢迎分享,转载请注明来源:内存溢出
object functionDemo{ def showmsg2(name:String,s:String*):Unit={ println(name) //wjj println(s.getClass) //class scala.collection.mutable.WrappedArray$ofRef for(str<-s){ println(str) //kb15,kb16 } } showmsg2("wjj","kb15","kb16") }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)