This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Get keys on the basis of values in any Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Get keys on the basis of values in any Collection" Watch "Get keys on the basis of values in any Collection" New topic
Author

Get keys on the basis of values in any Collection

SaurabhSri Sri
Ranch Hand

Joined: May 01, 2008
Posts: 43
Hi,

Is there any way to get keys on the basis of values in any Collection. Actually my collection looks like this -

Service1 Start
Service2 Stop
Service3 Start
Service4 Start
Service5 Stop

Now I want to get all keys whose values are 'Stop' in a sorted manner. Please give any idea or if any other way ..

Thanks in advance.


Regards
SaurabhSri (SCJP 1.5)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35239
    
    7
Please do not post the same question to multiple forums: CarefullyChooseOneForum. This forum is -as its name implies- for questions about HTML and JavaScript.

Let's continue the discussion in this duplicate thread.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Get keys on the basis of values in any Collection
 
Similar Threads
Rise Against Corruption Anna Hazzare
collctions
How to iterate over HashMap?
Sorting values in HashMap
Get keys on the basis of values in any Collection