java assignment 4