completes assignment 11, chapter 5, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
completes assignment 12, chapter 5, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>