I've created a class with several
string variables. I created an ArrayList of the class objects. I want to sort the list on one of the variables. I change the list to an array to sort it. When I try to sort the array I get a java.lang.ClassCastException error.
Do I need a comparator? What is a comparator and how do I use it here?
[ May 31, 2002: Message edited by: Duane Eddy ]