Scala – Extractors

Scala extractor is an object that has a method called unapply as one of its members. The purpose of unapply method is to match a value and take it apart.

Scala – Files I/O

Scala can use Java class like PrintWriter to read and write files. Console class can be used to read input paramaters and Source class to read from files.

Scala Tutorial

Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way.

Scala – IF ELSE Statements

A great thing about the Scala if-else , if-else-if, nested if-else construct is that it always returns a result.