Skip to content

Day 2 / Mar 2 (Wed)

Topics

Working with the Scala for the Impatient book

Chapter 1

1.2 Declaring Values and Variables

  • vals
  • Optional types

1.3 Commonly Used Types

  • All types are classes
  • Invoking methods
  • StringOps

1.5 Calling Functions and Methods

1.6 The apply Method

1.7 Scaladoc

Chapter 2

Expressions

2.1 Conditional Expressions

  • ifs

2.3 Block Expressions and Assignments

2.4 Input and Output

  • print
  • println
  • readLine(prompt)
  • read methods

2.7 Functions

2.8 Default and Named Arguments

2.12 Exceptions

  • try-finally statement

Exercises (page 26)

  • 1
  • 5
Back to top