Completes extra assignment 7, chapter 2, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
The lecturers answer to extra assignment 7, chapter 2, java programming

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