LinkedList/Node.java
Sobottasgithub f335297065 Init
2026-01-12 16:17:14 +01:00

26 lines
455 B
Java

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