Skip to content

Commit afddfd0

Browse files
Add comment above parameterised constructor
1 parent d0962bc commit afddfd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DataStructures/Lists/SinglyLinkedList.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ class Node {
321321
this(value, null);
322322
}
323323

324+
/**
325+
* Constructor
326+
* @param value Value to be put in the node
327+
* @param next Reference to the next node
328+
*/
324329
Node(int value, Node next) {
325330
this.value = value;
326331
this.next = next;

0 commit comments

Comments
 (0)