Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
}
private void afficher_arbre_rec(IntNode currentNode, int column) {
- int i;
-
if (currentNode != null) {
afficher_arbre_rec(currentNode.getRightNode(), column + 1);
- for (i = 0; i < column; i++) {
+ for (int i = 0; i < column; i++) {
System.out.print(" ");
}
System.out.println(currentNode.getData());
bTree.inserer(9);
bTree.inserer(11);
bTree.inserer(10);
+ bTree.inserer(8);
+ bTree.inserer(4);
bTree.afficher();
bTree.afficher_arbre();