Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

Java HashMap Operations

Java HashMap Other operations

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 >>
Your rating: None Average: 3 (2 votes)
Share this
Anonymous's picture

great tutorial!

great tutorial!

Post new comment