DEV/DEV3.2/Florent/ControleMachine/1/Main.java

26 lines
787 B
Java
Raw Normal View History

2023-12-06 15:31:35 +01:00
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));
}
}