Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
void putAll(Map map)
Copies all mappings from the map to current HashMap and replaces existing entries, if any.
Void clear()
Removes all mappings from HashMap.
Collection values()
Returns collection of the values contained in the HashMap.
Set entrySet()
Returns a Set of entries contained in the HashMap.
Set keySet()
Returns a Set of keys contained in the HashMap.
Object clone()
Creates copy of the HashMap.
This brings us end of Java HashMap Tutorial. Please let us know your views by leaving a comment in the comments section below.
<< HashMap Methods HashMap Example >>

great tutorial!
Post new comment