I want to sort an ArrayList of ArrayList which are having objects inside it. Sorting needs to be done based on some attributes of Objects inside the ArrayList. It is like
ArrayList<ArrayList<Object>> list=new ArrayList<ArrayList<Object>>();
I want to use Collections's Sort method.
I have tried following but it is displaying error
Collections.sort(ccWrapper.colContainer, new Comparator<ArrayList<Object>>() {
public int compare(Object arg0, Object arg1) {
// TODO Auto-generated method stub
return 0;
}});
Error:The type Comparator is not generic; it cannot be parameterized with arguments >