View Single Post
  #3 (permalink)  
Old 11-26-2009, 11:09 PM
SBL SBL is offline
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
SBL is on a distinguished road
Default
i tired
Collections.sort(book, new comparator(){
public int compare (Object o1, Object o2){
Contact p1 = (Contact) o1;
Contact p2 = (Contact) o2;
return p1.getsecondName().compareToIgnoreCase (p2.getsecondName());

but i keep getting an error on the Comparator and i cant find out why.
cheers
Reply With Quote