The name of the file

Report a typo

How should you name the file that contains the following code? Specify the name along with the file extension .scala.

object MyProgram {
  def description: String =
    "It's an amazing program, isn't it?"

  def main(args: Array[String]): Unit = {
    println(description)
  }
}
Enter a short text
___

Create a free account to access the full topic