public int sumleaf() {
int sum = 0;
return this.sumleaf(this.root, sum);
}
private int sumleaf(Node node, int sum) {
if(node == null) {
return sum;
}
sumleaf(node.left, sum);
sum = sum + node.data;
sumleaf(node.right, sum);
return sum;
}