Sort a parallel array using Arrays.sort()
You can’t have Arrays.sort manipulate a second array the way it’s sorting the first array. The solution is to sort your own objects that contain all the data you need. Create a Contact class with name and cell number attributes. Then create a class that implements Comparator<Contact> (say, ContactComparator) to compare the names. Then you … Read more