java - I have to compile hello.scala which has a import command "org.scala._" -


i know folder located, how run hello.scala terminal

i doing scala hello.scala , generates error

/users/username/desktop/hello/hello.scala:1: error: illegal start of definition package org.scala ^  1 error found 

how can run program?

include package name when using scala command , run against class file instead of source code

scala org.scala.hello 

like java, scala naming conventions indicate classes start initial uppercase letter classes, e.g. hello


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -