Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Node {
- String text= " ";
- Node left=null;
- Node right=null;
- boolean isEmpty;
- public Node(String text,Node left,Node right,boolean isEmpty){
- this.text = text;
- this.left = left;
- this.right = right;
- this.isEmpty =isEmpty;
- }
- public Node(String text){
- this.text = text;
- }
- public void SetText (String text) {
- this.text=text;
- }
- public String getText() {
- return text;
- }
- boolean isEmpty(){
- return this.isEmpty;
- }
- public void setRight(){
- this.right=right;
- }
- public Node getRight(){
- return right;
- }
- public void setLeft(){
- this.left=left;
- }
- public Node getLeft(){
- return left;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement