diff --git a/DataStructuresJava/src/LinkedList.java b/DataStructuresJava/src/LinkedList.java index 1c569a7..508feb7 100644 --- a/DataStructuresJava/src/LinkedList.java +++ b/DataStructuresJava/src/LinkedList.java @@ -28,7 +28,6 @@ public void insertAtStart(int data) { Node node = new Node(); node.data = data; - node.next = null; node.next = head; head = node; }