Write a Scala program to print "Hello, world" and version of the Scala language.
object HelloWorld { def main(args: Array[String]): Unit = { println("Hello, world!") println("Scala language: "+util.Properties.versionString) } }
Sample Output:
Hello, world! Scala language: version 2.13.3
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer