29 lines
874 B
Java
29 lines
874 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));
|
|
|
|
System.out.println(Titi.getInt());
|
|
|
|
System.out.println(Toto.getInt());
|
|
|
|
|
|
|
|
}
|
|
}
|