Add comment above parameterised constructor

This commit is contained in:
Nishant Ingle 2020-10-01 21:21:56 +05:30 committed by GitHub
parent d0962bc959
commit afddfd02d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;