Scala - Console (Interactive Shell|REPL)

1 - About

Console in Scala

3 - Start

3.1 - With Scala

scala
Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79).
Type in expressions to have them evaluated.
Type :help for more information.
scala> object HelloWorld {
     |   def main(args: Array[String]): Unit = {
     |     println("Hello, world!")
     |   }
     | }
defined object HelloWorld
scala> HelloWorld.main(Array())
Hello, world!

3.2 - With sbt

Scala - SBT (Builder)

sbt console
lang/scala/console.txt ยท Last modified: 2018/07/10 10:36 by gerardnico