help please. linked list stuff
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement