import java.util.Iterator; import arbre.Arbre; /* * Created on 15 nov. 2004 * */ /** * @author baudon * */ public class Test { public static void main(String[] args) { Arbre a = new Arbre(new Arbre(new Arbre(null, null, "1"), new Arbre(null, null, "2"), "3"), new Arbre(null, null, "4"), "5"); for (Iterator it = a.iteration(); it.hasNext();) { System.out.print(it.next() + " "); } System.out.println(); } }