Java does not have a direct method to update an object in a HashSet. You can do by removing that object and adding the replacement one.
確定! 回上一頁