Yes I have looked at the java sun tutorial. Maybe I didnt make myself quite clear in my orignal post.
In the examples I have seen so far when comparing objects, it seems that each comparator can only compare 1 field of the objects at a time.
I would like to have 1 comparator for each object that can compare any of the all of the fields of that object.
As an example from this website: comparator example, they have 2 comparators 1 for age and 1 for name. can I have 1 comparator to handle both??