hello everyone,
im having issues with this. i don't know what else to try. i am supposed to add a remove function to delete the last node in the list, i am trying this, but i get an endless loop, and when i change it around it just sits there.
any help would be appreciated! thanks
Val.
public Link deleteLast()
{
Link temp = head;
while(temp.next != null)
temp = temp.next;
return temp;
}