Scala and expected class or object definition
Hi,
I have just downloaded Intellij Idea 14.1.1, installed the Scala Plugin, Downloaded the SDK e created a very simple object:
object Upper {
def upper(strings: String*) = strings.map(_.toUpperCase())
}
Then I have create a Scala Script:
Upper.upper("Marcus")
When I Run the Script I receive this error
Error:(12, 1) expected class or object definition
Upper.upper("Marcus")
How can I run a script in Scala
Thanks in advance
请先登录再写评论。