Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.List;
  2.  
  3. public class Node23<T> {
  4.  
  5.     public T value;
  6.     public List<Node23<T>> children;
  7.     public Node23<T> parent;
  8.  
  9.     public Node23() {
  10.         this(null, null, null);
  11.     }
  12.  
  13.     public Node23(Node23<T> parent, T value) {
  14.         this(parent, value, null);
  15.     }
  16.  
  17.     public Node23(Node23<T> parent, T value, List<Node23<T>> children) {
  18.         this.parent = parent;
  19.         this.value = value;
  20.         this.children = children;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement