BUT2/DEV/DEV_Madelaine/Wamster_stub/exercice 2/Main.java

18 lines
555 B
Java
Raw Permalink Normal View History

2023-12-01 14:24:23 +01:00
public class Main{
public static void main(String[] args){
Individu titi = new Individu("titi");
titi.add(Denomination.CINQ);
titi.add(Denomination.CINQ);
titi.add(Denomination.CINQ);
titi.add(Denomination.DIX);
titi.add(Denomination.DIX);
System.out.println(titi.getNom()+" a : \n"+titi.printFortune());
Individu toto = new Individu("toto");
toto.add(Denomination.UN);
toto.add(Denomination.UN);
toto.add(Denomination.UN);
toto.add(Denomination.DIX);
System.out.println(toto.getNom()+" a : \n"+toto.printFortune());
}
}