Scala - Console (Interactive Shell|REPL)

Card Puncher Data Processing

Scala - Console (Interactive Shell|REPL)


Console in Scala


With 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!

With sbt

Scala - SBT (Builder)

sbt console

Discover More
Card Puncher Data Processing
Scala - Getting Started (Hello World)

Getting started page with an HelloWorld example and some documentation. Create a main HelloWorld object: Run it interactively: Compile it: Run the compile code: In a maven project,...
Scala Sbt Based Project
Scala - SBT (Builder)

Sbt is a build tool for Scala You can start the Scala interpreter inside sbt using the console task. If your project has an object with a main method (or an object extending the trait App),...

Share this page:
Follow us:
Task Runner