scala代码
object HelloScala{ def main(args: Array[String]): Unit = { println("hello scala") } }
使用win 10 cmd 运行java
java -cp %SCALA_HOME%/lib/scala-library.jar; HelloScala
scala代码
object HelloScala{ def main(args: Array[String]): Unit = { println("hello scala") } }
使用win 10 cmd 运行java
java -cp %SCALA_HOME%/lib/scala-library.jar; HelloScala