Frnds, I want to know how SortedMap works internally in comparing two key values while inserting elements in it. Because i want to override the compare method that it uses in comparing objects according, so can anyone explain it. Is it uses the compare method of Object class??? My problem is that i have some words with there freqency, now i ...