correction du stand de cuissant et cuisinier
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,10 +1,4 @@
|
|||||||
|
|
||||||
# bloop and metals
|
|
||||||
.bloop
|
|
||||||
.bsp
|
|
||||||
.metals
|
|
||||||
project/metals.sbt
|
|
||||||
|
|
||||||
# vs code
|
# vs code
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ public class Cuisinier extends Thread {
|
|||||||
public void faire_cuire(Client client){
|
public void faire_cuire(Client client){
|
||||||
System.out.println("Cuisinier : fait cuire le plat de " + client.getNameClient()) ;
|
System.out.println("Cuisinier : fait cuire le plat de " + client.getNameClient()) ;
|
||||||
try{
|
try{
|
||||||
//long temps_cuire =new Random().nextInt(300 - 100) + 100;
|
long temps_cuire =new Random().nextInt(300 - 100) + 100;
|
||||||
//Thread.sleep(temps_cuire);
|
Thread.sleep(temps_cuire);
|
||||||
Thread.sleep(3000);
|
|
||||||
}catch(InterruptedException e){
|
}catch(InterruptedException e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user