import java.util.ArrayList; public class SimplePointCom { private ArrayList Cellules; public String autoVerif(String propoUtil){ String Resultat = "manque"; int indice = Cellules.indexOf(propoUtil); System.out.println("je suis la ds autoVerif indic = " + indice); if (indice >= 0){ Cellules.remove(indice); if (Cellules.isEmpty()){ Resultat = "Coulé"; } else { Resultat = "touché"; } } return Resultat; } void setCellules (ArrayList Place){ Cellules = Place; } }