scala 输出hello world

查看scala版本

scala -version
Scala code runner version 2.12.8 -- Copyright 2002-2018, LAMP/EPFL and Lightbend, Inc.

运行scala,进入交互式界面

➜  ~ scala
Welcome to Scala 2.12.8 (Java HotSpot(TM) 64-Bit Server VM, Java 9.0.4).
Type in expressions for evaluation. Or try :help.

//输出hell oworld
println("Hello World")

//输出
//scala> println("hello world")
//hello world
    原文作者:无形
    原文地址: https://segmentfault.com/a/1190000018443078
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞