Some refactoring on the years.java file, week 39, java programming

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