more work on the week assignments, week 39, java programming

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