+ }
+
+ public void afficher() {
+ afficher_rec(rootNode);
+ System.out.println();
+ }
+
+ private void afficher_arbre_rec(IntNode currentNode, int column) {
+ if (currentNode != null) {
+ afficher_arbre_rec(currentNode.getRightNode(), column + 1);
+ for (int i = 0; i < column; i++) {
+ System.out.print(" ");
+ }
+ System.out.println(currentNode.getData());
+ afficher_arbre_rec(currentNode.getLeftNode(), column + 1);
+ }
+ }
+
+ public void afficher_arbre() {
+ afficher_arbre_rec(rootNode, 1);