Would like to ask a question on sorting.I have already created an array and inside the arrayit consists of membership id and names.I would like to sort using the names.. how should i dotat?
Look at the following classes :java.util.Collectionsjava.util.ComparatorSo what you do is create a class and implementComparator, this does the actual sorting.Then just do the following,Collections.sort( LIST, COMPARATOR_CLASS );