posted 22 years ago
Jenny, along with what Roy said, for Maps there are two methods values() and keySet()
Map.values() returns a Collection containing all the values, which could be sorted using Collections.sort()
Likewise Map.keySet() return a set of all possible keys and again you could sort them using Collections.sort()
So if you had some special sorting need this is one way it could be handled with a Map interface.
[ February 22, 2002: Message edited by: Rajinder Yadav ]
<a href="http://www.rajindery.com" target="_blank" rel="nofollow">Rajinder Yadav</a><p>Each problem that I solved became a rule which served afterwards to solve other problems. --Rene Descartes