I have a linked list of stops (nodes). Each stop has multiple pieces of information. I want to add in the first items value for 'prevStop' in.
Currently I think something like this will work (if it was a pointer, is it a pointer?) but I'm sure their is a better way to do so?
public void AttachPrevToFirst()
{
Stops temp = theList.First.Value;
Stops temp2 = theList.Last.Value;
temp.prevStop = temp2;
}
P.S. how would I print the data from the linked list?
Thanks in advance for your help :)