DEV/DEV3.2/TP8/Tri/Main.java

16 lines
328 B
Java
Raw Permalink Normal View History

2023-11-29 17:27:03 +01:00
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());
}
}