Scala

Scala Language

Scala IDE

REPL(Read Eval Print Loop)

Scala Interpreter

C:\dev\scala\hello>scala
Welcome to Scala 2.12.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_141).
Type in expressions for evaluation. Or try :help.

scala> 1 + 2
res0: Int = 3

scala> 1 + 2
res1: Int = 3

scala> res0 + res1
res2: Int = 6

scala> :quit

C:\dev\scala\hello>

Compile & Execute

Hello.scala

object Hello {
  def main(args: Array[String]) = println("Hello World!")
}
C:\dev\scala\hello>scalac Hello.scala
Hello$.class   Hello.class    Hello.scala

C:\dev\scala\hello>scala -classpath . Hello
Hello World!





© 2017. by yeopoong.github.io

Powered by yeopoong