This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Example on Map.Entry methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Example on Map.Entry methods" Watch "Example on Map.Entry methods" New topic
Author

Example on Map.Entry methods

Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
hi!

If anybody of you could give any example of using methods of the Map.Entry;

K getKey();
V getValue();
V setValue(V new);

entrySet() is method of the Map.

I am not getting how to use those methods in association with the Set returned by the Map.

Thanks,
cmbhatt


cmbhatt
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343



"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
I got it Marc!





Thank you so much!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Example on Map.Entry methods
 
Similar Threads
entrySet method Signature
sort TreeMap by value
re: Iteration in a Map
Why do we need static nested class?
How to sort Map