26 lines
787 B
Java
26 lines
787 B
Java
public class Main {
|
|
public static void main(String[] args) {
|
|
|
|
//Création des individu
|
|
Individu Titi = new Individu("Titi");
|
|
Individu Toto = new Individu("Toto");
|
|
|
|
//Ajout de l'argent de Titi
|
|
Titi.addMonaie(new Billet(Denomination.Dix));
|
|
Titi.addMonaie(new Billet(Denomination.Dix));
|
|
Titi.addMonaie(new Billet(Denomination.Cinq));
|
|
Titi.addMonaie(new Billet(Denomination.Cinq));
|
|
Titi.addMonaie(new Billet(Denomination.Cinq));
|
|
|
|
//Ajout de l'argent de Toto
|
|
Toto.addMonaie(new Billet(Denomination.Dix));
|
|
Toto.addMonaie(new Billet(Denomination.Un));
|
|
Toto.addMonaie(new Billet(Denomination.Un));
|
|
Toto.addMonaie(new Billet(Denomination.Un));
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|