List of Listings
Chapter 1. Why Scala?
Listing 1.1. Creating the loop construct loopTill in Scala
Listing 1.2. Finding an uppercase character in a string using Java
Listing 1.3. Finding an uppercase character in a string using Scala
Listing 1.4. Defining a Programmer class in Java
Listing 1.5. Defining a Programmer class in Scala
Listing 1.6. Counting the number of lines in a file in Ruby
Listing 1.7. Counting the number of lines in a file in Scala
Chapter 2. Getting started
Listing 2.1. breakable, break, and install functions
Listing 2.2. An ordinal class written in Java
Listing 2.3. An ordinal class in Scala
Get Scala in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.