posted 15 years ago
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)