Permalink
Browse files

Setting the Scala sample app back to the way it's supposed to be, not…

… the nasty 'make-it-look-more-like-java' way
  • Loading branch information...
coacoas committed May 8, 2012
1 parent d276acb commit df53dee796ec99d4b452466d440fe19bac8c7665
Showing with 4 additions and 8 deletions.
  1. +4 −8 src/main/scala/com/jaxjug/ScalaSample.scala
@@ -1,13 +1,9 @@
package com.jaxjug;
-object ScalaSample {
- def main(args: Array[String]) {
- def sayHello(name: String): String = {
- "Hello, %s!".format(name);
- }
+object ScalaSample extends App {
+ def sayHello(name: String) = "Hello, %s!".format(name);
- val audience = "JaxJUG";
+ val audience = "JaxJUG";
- println(sayHello(audience));
- }
+ println(sayHello(audience));
}

0 comments on commit df53dee

Please sign in to comment.