19 lines
347 B
Java
19 lines
347 B
Java
public class Noeud{
|
|
protected float val;
|
|
protected Noeud noeudGauche;
|
|
protected Noeud noeudDroit;
|
|
|
|
public Noeud(float f){
|
|
this.val = f;
|
|
this.noeudGauche=null;
|
|
this.noeudDroit=null;
|
|
}
|
|
|
|
public void addNoeudGauche(float f){
|
|
this.noeudGauche = new Noeud(f);
|
|
}
|
|
|
|
public void addNoeudDroit(float f){
|
|
this.noeudDroit = new Noeud(f);
|
|
}
|
|
} |