Sharedsupport / 2016-11-22-scala.sagewsOpen in CoCalc
Examples for support purposes...

Using the Jupyter Scala kernel in SageMathCloud worksheets.

scala = jupyter("scala211")
%scala
List(1,2,3)
res0: List[Int] = List(1, 2, 3)
%scala
object HelloWorld {
   def main(args: Array[String]) {
      println("Hello, world!")
   }
}
defined object HelloWorld
%scala
println("Hello\tWorld\n\n" );
Hello World