I am brand new to Scala, and I was wondering why the main method is not running in this script?
class Word {
}
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
}
}
The interesting thing is that it works fine when i remove the Word
class. Why is this? And how do I fix it?