public void parcours() { System.out.println(sac.getValeur()); if (gauche != null) gauche.parcours(); if (droit != null) droit.parcours(); }
private static Backpack max(Backpack f, Backpack g) { if (f.getValeur() < g.getValeur()) return g; return f; }