hello world on scala
install di ubuntu tinggal jalanin :
user@computer:$ apt-get install scala
source code hello world scala :
user@computer:$ scala
Welcome to Scala version 2.7.3final (OpenJDK Server VM, Java 1.6.0_0).
Type in expressions to have them evaluated.
Type :help for more information.
scala> object HelloWorld{
| def main(args: Array[String]){
| println("Hello, World!")
| }
| }
defined module HelloWorld
scala> HelloWorld.main(null)
Hello, World!
scala> :q
Welcome to Scala version 2.7.3final (OpenJDK Server VM, Java 1.6.0_0).
Type in expressions to have them evaluated.
Type :help for more information.
scala> object HelloWorld{
| def main(args: Array[String]){
| println("Hello, World!")
| }
| }
defined module HelloWorld
scala> HelloWorld.main(null)
Hello, World!
scala> :q
source : http://www.scala-lang.org/node/166
Related posts:
Tak beda jauh dengan java…
mungkin secara syntax iya (gak beda jauh).. tapi dari sisi yang lain, masih perlu dipelajari :)
Punya Sisi Lain ya?
punya