Print binary search tree
Anónimo
class Tree { private Node root; public void print() { printRecursively(root); } private void printRecursively(Node node) { if (node == null) return; printRecursively(node.left); System.out.println(node.data); printRecursively(node.right); } }