HELP!! Java LinkedLists!
I have a LinkedListManager class(global variable front, which is head of the linked list), and inside of it, i have a node class
the node class has 2 public variables i can access:
Node next;
and
Object x;
Let's say i want to remove an item from the middle of the list.
The object can be identified by some parameter, so if i search through the linked list using a while(temp.next!=null) loop, i can get a number back, of how many times i need to use temp=temp.next to get the object
So can any1 post a function here that will get rid of one element in the middle of the linked list?
Or post here if i need to clarify something.