20 lines
343 B
Java
20 lines
343 B
Java
public class Cell {
|
|
private int value;
|
|
|
|
public Cell() {
|
|
this.value = 0;
|
|
}
|
|
|
|
// Constructeur prenant une valeur comme argument
|
|
public Cell(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public int getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(int value) {
|
|
this.value = value;
|
|
}
|
|
} |