import javax.swing.*; import java.awt.*; public class Case{ private boolean bombe; private int nbBombe; public Case(){ this.bombe = false; this.nbBombe =0; } public void setBombe(){ this.bombe = true; } public boolean getBombe(){ return bombe; } public void addBombe(){ this.nbBombe += 1; } public int getNbBombe(){ return nbBombe; } public String toString(){ if(bombe) return "B"; else return ""+this.nbBombe; } }