java home assignmenet