I have a file named Hello.scala
that contains this simple code:
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world!")
}
}
I compiled it using this command:
$ scalac Hello.scala
The result was two files named HelloWorld.class
and HelloWorld$.class
.
What is these files? How can I use these files?
Note: My problem is not duplicate files. I want to know what is this files and how can I execute them?
Thanks for answer