Scala
Language Installation Instructions
Programming Language Paradigms

Hello, World

  1. Launch the Scala interpreter by typing scala in a terminal window
  2. Paste in the following code:
    object HelloWorld {
    def main(args: Array[String]) {
    	println("Hello, world!")
    	}
    }
    				
  3. Hit enter.
  4. Paste in the following code:
    HelloWorld.main(null)
  5. Hit enter.
  6. You should see "Hello, world!"
  7. Type :q and hit enter to quit.