brenda flire wrote:But what I don't understand is how startNode is supposed to be populated when this private contains method is called from the public contains2 method?
As Fred says, there will probably already be one in your
LList class. In
Java's own
LinkedList I believe it's called '
header'; in other implementations, I've also seen it called an "anchor". Other possibilities: '
first[Node]', '
top', '
front' ...
HIH
Winston