You could also create a class that implements Comparable and use it as a holder for your phone book record. Make an array of them (one per record) ... sort on the desired field using Arrays.sort(Object). You will need the holder to have a method of specifying which field is to be compared and all primatives will have to be converted to their object representations. I may not be explaining it very clearly, but I have used this method numerous times and it works quite well. I'll try to dig up some sample code and re-post. Hope this helps
------------------ Chris Stehno (Sun Certified Programmer for the Java 2 Platform)
Billie, first is Billie Banjo your real first and last name?
Two, look at the Comparable and Comparator interface, you can define your own sorts this way, and then you can pass your Collection, and the Comparator to the Collections.sort(Collection, Comparator) method, or just the Collection to the Collections.sort(COllection) method if your classes inside the Collection implement the Comparable interface.