I downloaded Scala from http://www.scalalang.org/downloads and I would like to start to do simple program starting from prompt and using the interpreter.
Could you explain step by step how I can launch a simple Hello World
Thanks
To launch a prompt
add the scala's bin directory to $PATH variable and type scala
command.
#!/usr/bin/env scala
println("Hello World")
Save it as hello.scala
chmod +x hello.scala
./hello.scala
#or
scala hello.scala
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With