This commit is contained in:
Minh VU
2024-12-03 16:15:49 +01:00
parent 78c388ca9d
commit f47f77dc00

View File

@@ -10,15 +10,17 @@ public class Client extends Thread {
public void run(){
entrer();
for(int i = 0; i<this.restaurant.buffet.length; i++){
prendre_portion(this.restaurant.buffet[i]);
try{
entrer();
for(int i = 0; i<this.restaurant.buffet.length; i++){
prendre_portion(this.restaurant.buffet[i]);
}
cuir_au_stand(restaurant.stand_de_cuisson);
manger();
sort();
}catch (Exception e){
e.printStackTrace();
}
cuir_au_stand(restaurant.stand_de_cuisson);
manger();
sort();
}
public void prendre_portion(Compartiment compartiment){