From afddfd02d554c03f11846fd67ca918433ed2712b Mon Sep 17 00:00:00 2001 From: Nishant Ingle <30694286+Nishant-Ingle@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:21:56 +0530 Subject: [PATCH] Add comment above parameterised constructor --- DataStructures/Lists/SinglyLinkedList.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataStructures/Lists/SinglyLinkedList.java b/DataStructures/Lists/SinglyLinkedList.java index 1df0b413..2e7c5d37 100644 --- a/DataStructures/Lists/SinglyLinkedList.java +++ b/DataStructures/Lists/SinglyLinkedList.java @@ -321,6 +321,11 @@ class Node { this(value, null); } + /** + * Constructor + * @param value Value to be put in the node + * @param next Reference to the next node + */ Node(int value, Node next) { this.value = value; this.next = next;