package site.licsber.bitree; public class Node { public Node(T data) { this.data = data; } public Node(T data, Node parent) { this.data = data; this.parent = parent; } public T data; public Node left; public Node right; public Node parent; @Override public String toString() { return data.toString(); } }