I'm trying to learn how to implement a LinkedList by hand and I notice that when the LinkedList needs to be traversed with a for loop that instead of the usual for loop structure used for traversing arrays....
for (int i = 0; i<length; i++)
what is used instead in the examples is stuff like this...
for (int i = 1; i<=length+1; i++)
I'm sure that although there aren't numerical values assigned to each Node, the counting should still be from 0 or no.
And does the head hold an Object itself or is the head just a starting point which itself just refers to the first Object at position 1. Maybe that's why?