This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Scala and the fly likes What is going wrong with this Scala script? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark "What is going wrong with this Scala script?" Watch "What is going wrong with this Scala script?" New topic
Author

What is going wrong with this Scala script?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hey,
I started learning Scala yesterday and I started with this script file:

By running it with : scala Hello.scala I got:
mymachinename: mymachinename

What is going wrong?
(Arch Linux/Scala 2.7.5 final)
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What is going wrong with this Scala script?