I am a newbie to Scala, it\'s the first time I\'m running Scala, when I installed Scala, I created a file named Hello.scala
, the content is:
pr
If you are executing it in scala REPL .You should be using as below
:load [scala file path]
output would be as below
defined "objectname"
Then invoke the main method as the next command
objectname.main(Array())
Refer the below url for more detailed info
https://www.scala-lang.org/documentation/getting-started.html