I am creating some doubly linked list of type Double and no matter how I declare another linked list of the same type, it always refers to the first list.
Such as:
How to get the data reference/index in Linked list?
e.g. if I have this linked list
java.util.List<Polygon> triangles = new LinkedList<Polygon>();
polygon triangle, selectedTriangle;
Point startDrag,endDrag,midPoint;
....
triangles.add( new Polygon(xs, ys,3));
Hello , I am working on a reverse method that will reverse the objects of the Doubly LinkedList via the pointers . To accomplish this I have to use "next" & "previous" . I am confident that I am on the right track with my method but would like a second set of eyes. All I am really looking for is ...
Hi, I'm populating a LinkedList of Strings from database. Also Im assigning this list into different objects. when i try to add a new element in the linked list from a particular object, it updates all the objects in which i assigned the list into. Probably it is taking the reference of the list in the objects. How can i solve ...
Yes, there is a way and, unlike others, I admire your approach. It's so refreshing after seeing all the 'do my homework' krapp. I call this reasearch, not cheating. Go to your JDK directory and open src.zip. You will find there what you need. And by the way, peeking inside this zip would answer hundreds of questions, Whenever I don't quite ...