This commit is contained in:
2024-03-18 13:54:22 +01:00
parent eb581c8a31
commit a28bef01d7
69 changed files with 855 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
public class Moyenne2{
private double moyenne;
private double nbr_valeur;
public Moyenne2(){
this.moyenne = 0;
this.nbr_valeur = 0;
}
public void add(Number val){
this.moyenne+= val.doubleValue();
this.nbr_valeur+=1;
}
public double getAverage(){
return this.moyenne/this.nbr_valeur;
}
}