@@ -0,0 +1,1004 @@
+package binary_search_tree;%0A/*%0AThis class defines a Node of Binary Search Tree%0A*/%0A%0Aclass Node%7B%0A%0A%09private int value = -1; %09// Data value, default = -1%0A%09private Node left = null; %09// Left sub tree reference, default = null%0A%09private Node right = null;%09// Right sub tree reference, default = null%0A%0A%09// Constructs Node with default values%0A%0A%09public Node()%7B%0A%09%09// Do Nothing%0A%09%7D%0A%0A%0A%09// Constructs Node with specified value%0A%0A%09public Node(int value)%7B%0A%09%09this.value = value;%0A%09%7D%0A%0A%0A%09// Sets value as specificed%0A%0A%09public void setValue(int value)%7B%0A%09%09this.value = value;%0A%09%7D%0A%0A%09%0A%09// Returns value%0A%09public int getValue()%7B%0A%0A%09%09return value;%0A%09%7D%0A%0A%0A%09// Sets left subtree reference as specified%0A%0A%09public void setLeft(Node left)%7B%0A%0A%09%09this.left = left;%09%0A%09%7D%0A%0A%0A%09// Returns left subtree reference%0A%0A%09public Node getLeft()%7B%0A%0A%09%09return left;%0A%09%7D%0A%0A%0A%09// Sets right subtree reference as specified%0A%0A%09public void setRight(Node right)%7B%0A%0A%09%09this.right = right;%0A%09%7D%0A%0A%0A%09// Returns right subtree reference%0A%0A%09public Node getRight()%7B%0A%0A%09%09return right;%0A%09%7D%0A%0A%0A%7D

Create class Node