public Node replace(Object data, Object value) {
Node current = head;
while(current != null) {
if(current.getData() == data) {
current.setData(value);
return current;
}...
Type: Posts; User: ProgrammablePeter
public Node replace(Object data, Object value) {
Node current = head;
while(current != null) {
if(current.getData() == data) {
current.setData(value);
return current;
}...
Hey Guys, Could somebody point me in the right direction to replacing a node in a linked list?
I have no clue on where to start, thus. I have no code to supply.
I current have, a destory...