completed oppgave 5, kap5, java programming

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