I have a list of linkedlist.
List<LinkedList<File1>> lists =
Collections.synchronizedList(new ArrayList<LinkedList<File1>>());
each linkedlist contains objects of type File1.
class File1
{
int dist,nod;
}
Can anyone help me to sort the elements based on dist.
I thought of using collections.sort() but this cannot be used in this case, so can anyone suggest a better idea?