23 lines
383 B
Java
23 lines
383 B
Java
|
public class Noeud {
|
||
|
private Integer valeur;
|
||
|
public Noeud[] child = new Noeud[3];
|
||
|
private int Etat;
|
||
|
|
||
|
public Noeud(Integer etiquette) {
|
||
|
this.valeur = etiquette;
|
||
|
}
|
||
|
|
||
|
public int getValeur()
|
||
|
{
|
||
|
return valeur;
|
||
|
}
|
||
|
|
||
|
public int getEtat(){
|
||
|
return Etat;
|
||
|
}
|
||
|
|
||
|
public void setEtat(int newEtat){
|
||
|
this.Etat = newEtat;
|
||
|
}
|
||
|
}
|