Sign in to follow this  

help please. linked list stuff

Recommended Posts

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

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this