hey i have tried using different classes which implement Collection and Map...
and i have come to a conclusion that Treemap,TreeSet and alll Lists like ArrayList,LinkedList and Vector need Comparable or Comparator to sort sequences........and others like HashSet,LinkedHashMap,HashMap,LinkedHashMap,Hashtable they all need to override equals and hashcode to remove duplicate elements.........am i right...this is what was happening in my programs......incase if i am wrong please correct me.....
thanks................