Skip to content

Commit 70fb08f

Browse files
committed
feat: node now public class
1 parent 50727f5 commit 70fb08f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dataStructures/linkedList/LinkedList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@ public String toString() {
312312
}
313313
return ret;
314314
}
315-
315+
316316
/**
317317
* Node class for linked list
318318
*/
319-
private static class Node<T> {
319+
public static class Node<T> {
320320
T val;
321321
Node<T> next;
322322

@@ -328,5 +328,5 @@ private Node(T val) {
328328
public String toString() {
329329
return this.val.toString();
330330
}
331-
}
331+
}
332332
}

0 commit comments

Comments
 (0)