|
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
|