File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unique values from a Map