DEV/DEV3.2/TP8/Tri/Noeud.java

19 lines
347 B
Java
Raw Permalink Normal View History

2023-11-29 17:27:03 +01:00
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);
}
}