java assignment 1