Ajout des travaux effectuer

This commit is contained in:
2024-12-09 11:53:11 +01:00
parent 05fac8d3ae
commit c4e97e13da
558 changed files with 67900 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,27 @@
public class Moyenne
{
private double total = 0;
private long cpt = 0;
public void add(Number val)
{
total += val.doubleValue();
++cpt;
}
public double getAverage()
{
if(cpt == 0)
{
return 0;
}
return total/cpt;
}
public static void main(String[] args)
{
Moyenne m = new Moyenne();
m.add(5.5);
m.add(10);
System.out.println(m.getAverage());
}
}

View File

@@ -0,0 +1,7 @@
public interface take
{
public static void main(String[] args)
{
}
}