java hw 2-1