diff --git a/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java b/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java index d25af7a..247ec3b 100644 --- a/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java +++ b/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java @@ -97,7 +97,7 @@ public class Philosopher extends Thread implements IPhilosopher { for (var i = 1; i <= this.seat; i++) { System.out.print(" "); } - System.out.println(threadId() + " " + message); + System.out.println(Thread.currentThread().getName() + " " + message); } } }