put(key, value); while HashSet is used to store only unique objects using add method Example: hs.add(object);. HashMap doesn't allow duplicate keys but values ...
確定! 回上一頁