This commit is contained in:
Sobottasgithub
2026-01-12 16:17:14 +01:00
commit f335297065
9 changed files with 288 additions and 0 deletions

25
Node.java Normal file
View File

@@ -0,0 +1,25 @@
public class Node<T> {
private T content = null;
private Node nextNode = null;
public Node(T content) {
setContent(content);
}
private void setContent(T content) {
this.content = content;
}
private T getContent() {
return this.content;
}
private void setNextNode(Node nextNode) {
this.nextNode = nextNode;
}
private Node getNextNode() {
return this.nextNode;
}
}