completes assignment 6, chapter 5, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
small modification to assignment 3, chapter 5, java programming

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