I have an object that contains basically 2 fields: a
String and an integer. When I sort for display I want to be able to sort both ways, alphabetically and numerically. Right now, inside the object I have written an equals(Object o) method for the aphabetical display. I wrote my own quickSort for numerical display. Should I just get rid of the equals method and write 2 comparator classes? I'm not exactly sure how to use comparator, or if it even applies here, but it seems right.
Someone give me some help, please!
Micah