Only change:
1 scalac test.scala // compile time using the file name Scala 2 Scala -classpath. HelloWorld // use when execution is HelloWorld object name
Only change:
1 scalac test.scala // compile time using the file name Scala 2 Scala -classpath. HelloWorld // use when execution is HelloWorld object name