aspose file tools
The moose likes Beginning Java and the fly likes Unique values from a Map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unique values from a Map" Watch "Unique values from a Map" New topic
Author

Unique values from a Map

Srikanth Reddytr
Greenhorn

Joined: Apr 04, 2007
Posts: 4
How to get Unique values which are stroed in a Map
Arjun Karthick
Ranch Hand

Joined: Jan 04, 2007
Posts: 77
Hi
get all the values from the map using Values() and store it in a set.Set does not allow to store duplicate value in it. So your objective is satisfied.
Srikanth Reddytr
Greenhorn

Joined: Apr 04, 2007
Posts: 4
ThanQ Arjun, I implemented in that way works fine
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Unique values from a Map