> I am trying to use an array of some sort which will allow me to access
> a value based on a key (like in a Hashtable) but also allow me to
[quoted text clipped - 6 lines]
>
> Thanks
Won't SortedMap do what you want? It should be sorted according to the [natural]
sorting order of whatever object you use for the key. Since the keys are
sorted, if you iterate the SortedMap by key using keySet() method you should
get the items back according to the sorting order of the keys.
TreeMap<KeyObject,ItemObject> sortedMap = new TreeMap();
//populate your map with items...
for(KeyObject key : sortedMap.keySet()) {
ItemObject item = sortedMap.get(key);
}

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555