close Reader
This commit is contained in:
parent
c560e72201
commit
b351c33ad3
@ -120,9 +120,9 @@ public class SinglyLinkedList {
|
|||||||
cur = cur.next;
|
cur = cur.next;
|
||||||
}
|
}
|
||||||
|
|
||||||
Node destroy = cur.next;
|
//Node destroy = cur.next;
|
||||||
cur.next = cur.next.next;
|
cur.next = cur.next.next;
|
||||||
destroy = null; // clear to let GC do its work
|
//destroy = null; // clear to let GC do its work
|
||||||
|
|
||||||
size--;
|
size--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user