import java.io.*;
class DemoArbre {
static public void main(String[] args) {
Arbre a=new Arbre(null);
if (args.length==0) {
System.out.println("Usage : java DemoArbre <X1> .. <Xn>");
System.exit(0);
}
for (int i=0; (i<args.length); i++) {
a.inserer(args[i]);
}
a.parcours();
// rendre l'arbre persistant
try {
FileOutputStream fos = new FileOutputStream("arbre.tmp");
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(a);
oos.flush();
oos.close();
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
} // main
}