package lepack; import java.util.ArrayList; public class GestionTravaux { private ArrayList listeBatiments; private ArrayList listeOuvertures; private ArrayList listeTechniciens; public GestionTravaux() { this.listeBatiments = new ArrayList<>(); this.listeOuvertures = new ArrayList<>(); this.listeTechniciens = new ArrayList<>(); } public ArrayList getOuverturesNecessitantPlusDeKTechniciens(int k) { ArrayList resultat = new ArrayList<>(); for (Ouverture o : this.listeOuvertures) { if (o.getNombreInstallateurs() > k) { resultat.add(o); } } return resultat; } }