Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

Understanding the Scala Application

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:

  1. Create a Scala SBT project:
      Project Name: scala-helloworld-app 
  1. Create the following Scala 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.

  1. Like Java applications with the main() method, we can write the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content