BinaryTreeNode removeleaf(BinaryTreeNode root){
if(root == null){
return null;
}
if(root.getLeft() == null && root.getRight() == null){
return null;
}else{
root.setLeft(root.getLeft());
root.setRight(root.getRight());
}
return root;
}