I\'m using Intellij-idea for scala programming (with sbt plugin).
I want to know what is the difference between scala classes, scala scripts and scala worksheets. Wh
It's the same as Scala Interpreter (REPL) but runs inside IntelliJ. Where you may easily and quickly evaluate some expressions. Check IntelliJ confluence page for more information.
If you don't want write script on Bash you can do it with Scala. It's just sequence of Scala statements.
Example:
import java.nio.file.{Paths, Files}
val ScalaSource = "*.scala"
val Path = "path/to/necessary/folder"
val stream = Files.newDirectoryStream(Paths.get(Path), ScalaSource)
val paths = stream.iterator
while (paths.hasNext) {
println(paths.next.getFileName)
}
Running it:
$ scala scala_script_name.scala
To getting started pick up this guide.
Short answer for Scala classes it's similar to POJO and Scala Objects it's a Java Singleton class.