hello world on scala

Jul 14th, 2009 | Posted by

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

source : http://www.scala-lang.org/node/166

Related posts:

  1. Hello world!
  2. testing wp-syntax
Tags:
  1. faiz
    Jul 14th, 2009 at 09:32
    Reply | Quote | #1

    Tak beda jauh dengan java…

    • cuplis
      Jul 14th, 2009 at 10:10
      Reply | Quote | #2

      mungkin secara syntax iya (gak beda jauh).. tapi dari sisi yang lain, masih perlu dipelajari :)

  2. ur fren
    Oct 13th, 2009 at 17:51
    Reply | Quote | #3

    Punya Sisi Lain ya?

  3. cuplis
    Oct 14th, 2009 at 08:48
    Reply | Quote | #4

    punya

*