February 2018
Intermediate to advanced
552 pages
13h 46m
English
Before discussing Scala Functional Programming features, we will discuss the Scala app. As a Java developer, initially everybody starts with some HelloWorld example, using the main() method. We can do the same thing in Scala using its app (or application).
The Scala app is defined in the scala package as scala.App. Let's develop a HelloWorld example, using IntelliJ IDEA:
Project Name: scala-helloworld-app
HelloWorldApp.scala:
object HelloWorldApp extends App{
println("Hello Scala World!")
}
Here, scala.App is a trait, which is used to develop Scala standalone applications.