QUOTE(lordms12 @ 6 Aug, 2008 - 12:08 PM)

Not enough code, I think
do you need the whole project???
i revised a little the errors gone but its not working..
<
CODE
>public void mergeLists(OrderedLinkedList<T> list1, OrderedLinkedList<T> list2)
{ LinkedListNode<T> lastMerged;//variable to last node
LinkedListNode<T> newList;// merge list
if(list1 == null)
return list2; //the firstsublist is empty
else
if (list2 == null)
return list1;
else
{Comparable<T> compElement = (Comparable<T>)list1.info;
if( compElement.compareTo(list2.info) < 0)//compares the first node
{
newList = list1;
list1 = list1.link;
lastMerged= newList;
}
else
{
newList= list2;
list2=list2.link;
lastMerged = newList;
}
//}
while (list1 !=null&& list2 !=null)
{
Comparable<T> compElement= (Comparable<T>)list1.info;
if(compElement.compareTo(list2.info) <0)
{
lastMerged.link = list1;
lastMerged=lastMerged.link;
list1 = list1.link;
}
else
{
lastMerged.link=list2;
lastMerged = lastMerged.link;
list2 = list2.link;
}
} //end while
if(list1 == null)
{ lastMerged.link = list2;
}
else
{ lastMerged.link = list1;}
return newList;
}
}
<
this is the revised what else do you need?....d