Hi! I have a ArrayList like this: ArrayList cds = new ArrayList(); and cds is an object from one another class named as CD. This cds-object contains strings. And now I want to sort these strings alphabetically, can I anyone help me pls?
if you have overridden the compareTo, equals and hashCode methods in the class your adding to the list, then you can just call Collections.sort( yourList ); otherwise you need to create a comparator object and use the Collections.sort( yourList, yourComparator ) Jamie
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com