Exercises from week 3 of Programming in Java, BBK MSc CS 2013