18 lines
655 B
Java
18 lines
655 B
Java
|
public class Main{
|
||
|
public static void main(String[] args){
|
||
|
Individu titi = new Individu("titi");
|
||
|
titi.add(new Billet(Denomination.CINQ));
|
||
|
titi.add(new Billet(Denomination.CINQ));
|
||
|
titi.add(new Billet(Denomination.CINQ));
|
||
|
titi.add(new Billet(Denomination.DIX));
|
||
|
titi.add(new Billet(Denomination.DIX));
|
||
|
System.out.println(titi.getNom()+" a : "+titi.getFortune());
|
||
|
Individu toto = new Individu("toto");
|
||
|
toto.add(new Billet(Denomination.UN));
|
||
|
toto.add(new Billet(Denomination.UN));
|
||
|
toto.add(new Billet(Denomination.UN));
|
||
|
toto.add(new Billet(Denomination.DIX));
|
||
|
System.out.println(toto.getNom()+" a : "+toto.getFortune());
|
||
|
}
|
||
|
}
|