Hi, I have a very basic question with Comparator. Please see the code below:
In the above code, I guess the compare() method in class AgeComparator is called for sorting the data. I would like to know from which part of the code, the compare() method is called.Basically how the flow of the above program is happening? Please help.
Thanks and Regards, Jayanth Mathavan
Edit by mw: Added Code Tags. [ August 14, 2007: Message edited by: marc weber ]
You could also take a look at the code of Arrays.sort, which comes with the JDK.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus