1 void preOrderPrint() {
system.out.print( value.toString() + " ");
if (left != nulll) {
left.preOrderPrint();
}
if (right != null) {
right.preOrderPrint();
}
}
2 void inOrderPrint() {
if(left != null) {
left.inOrderPrint();
}
system.out.print(value.toString() + " ");
if(right != null) {
right.inOrderPrint();
}
}
3 void postOrderPrint() {
if (left != null) {
left.postOrderPrint();
}
if(right != null) {
right.postOrderPrint();
}
system.out.print(value.toString() + " ");
}