Scala: Output


Example: Hello World in Scala


	object HelloWorld extends App {
	   println("Hello, World!")
	 }
	

Output:

  Hello, world!


Example: Hello World in Scala - Method #2


	object HelloWorld {
		def main(args: Array[String]) {
			println("Hello, world")
		}
	}
	

Output:

  Hello, world!