update,
This commit is contained in:
32
_resources/it114105/itp4510/Lab03/Lab3.4/StringBstNode.java
Normal file
32
_resources/it114105/itp4510/Lab03/Lab3.4/StringBstNode.java
Normal file
@@ -0,0 +1,32 @@
|
||||
public class StringBstNode {
|
||||
|
||||
private String data;
|
||||
private StringBstNode left;
|
||||
private StringBstNode right;
|
||||
|
||||
public StringBstNode(String data) {
|
||||
this.data = data;
|
||||
this.left = null;
|
||||
this.right = null;
|
||||
}
|
||||
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public StringBstNode getLeft() {
|
||||
return left;
|
||||
}
|
||||
|
||||
public StringBstNode getRight() {
|
||||
return right;
|
||||
}
|
||||
|
||||
public void setLeft(StringBstNode p) {
|
||||
left = p;
|
||||
}
|
||||
public void setRight(StringBstNode p){
|
||||
right =p;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user