help please. linked list stuff

Started by
0 comments, last by SiCrane 19 years, 4 months ago
I have a linked list(ItemList class) called "list" and another copy of it named "dupeList". When i do: list.getNext(); a boolean variable in my ItemList class called "getNextCalled" will turn to 'true'. Now... here is the problem: when i do list.getNext(), the boolean variable "getNextCalled" in "dupeList" also changes to 'true'. why??? Arent they different objects?? please help. im using java by the way
Advertisement
Cross post. Closed.

This topic is closed to new replies.

Advertisement