commit 58103506a41fb3fcc7086879b918e917dc1e9b44 parent 8c53dfb7116c0c316485a7fb6920bfab35fd8dde Author: William Lindholm <William_Lindholm@outlook.com> Date: Mon, 20 Feb 2023 20:22:44 +0100 Removed unnecessary prints Diffstat:
| M | OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java b/OOP2023_a22willi_a21liltr_assignment3/src/breakRoom/Worker.java @@ -73,6 +73,7 @@ public class Worker extends Thread { this.T = r.nextInt(500, 1500); //set the duration between each iteration of task to a random int. } + /** * Constructor * Creates a worker. @@ -94,13 +95,14 @@ public class Worker extends Thread { */ private void Queue() { if (!(coffeeQueue.inQueue(this))) { - System.out.println("======" + name + " not in queue======"); coffeeQueue.enQueue(this); - } else { - System.out.println("======" + name + " already in queue======"); } } + + /** + * Remove worker from queue. + */ private void deQueue() { if (coffeeQueue.inQueue(this)) { coffeeQueue.deQueue(this);