Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.List;
- public class Node23<T> {
- public T value;
- public List<Node23<T>> children;
- public Node23<T> parent;
- public Node23() {
- this(null, null, null);
- }
- public Node23(Node23<T> parent, T value) {
- this(parent, value, null);
- }
- public Node23(Node23<T> parent, T value, List<Node23<T>> children) {
- this.parent = parent;
- this.value = value;
- this.children = children;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement