some small modifications to week assignment 3, chapter 4, java programming

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