import javax.swing.*; import java.awt.*; import java.util.*; public class Q2Main{ public static void main(String[] args) { ArrayDeque> liste = new ArrayDeque<>(); try{ for (int i=0; i a = liste.pop(); Noeud b = liste.pop(); Noeud c = new Noeud(args[i]); c.add(b); c.add(a); liste.push(c); } else{ liste.push(new Noeud(args[i])); } } Arbre arbre = new Arbre<>(liste.pop()); arbre.afficheArbreQ2(); arbre.afficheArbreQ3(); } catch(NoSuchElementException e){ System.out.println("tu ecrit bien"); } catch(NumberFormatException e){ System.out.println("arretes de mal executer le code"); } } }