18 lines
555 B
Java
18 lines
555 B
Java
|
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());
|
||
|
}
|
||
|
}
|