/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package testsunitairesg1; import java.util.ArrayList; /** * * @author amelie.cordier */ public class Seau { ArrayList seau; public Seau(){ seau = new ArrayList(); } public Seau(String truc1, String truc2){ seau = new ArrayList(); seau.add(truc1); seau.add(truc2); } public void ajouter(String chose){ seau.add(chose); } public void afficher(){ System.out.println(seau); } public int nbElements(){ return seau.size(); } }