16 lines
328 B
Java
16 lines
328 B
Java
|
public class Main{
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
if (args.length==0){
|
||
|
System.out.println("Usage: java Main listereels");
|
||
|
}
|
||
|
|
||
|
Tri arbre = new Tri(Float.parseFloat(args[0]));
|
||
|
|
||
|
for(int i=0;i<args.length;i++){
|
||
|
arbre.ajouterNoeud(Float.parseFloat(args[i]));
|
||
|
}
|
||
|
|
||
|
System.out.println(arbre.toString());
|
||
|
}
|
||
|
}
|