hashmap constructors
Hash Map Constructors
HashMap ()
Constructs empty HashMap with a default initial capacity 11 and load factor 0.75.
HashMap (int initialCapacity)
Constructs empty HashMap with the specified initial capacity and default load factor 0.75.
HashMap (int initialCapacity, float loadFactor)
Constructs empty HashMap with the specified initial capacity and the specified load factor.
HashMap (Map t)
Constructs a new HashMap with the mappings same as the passed Map.
Comments
Post a Comment