Some possible solutions to the exercises in Cay Horstmann's Scala For The Impatient (by a Java programmer learning Scala)