Miscellany
public java v1 · immutable public void run() { System.out.println("Floor starting..."); while (numCustomers > 0) { try { Thread.sleep(rand.nextInt(MAX_DELAY * MILLI_PER_SEC)); line.enqueue(createCustomer()); System.out.println("Customer entering line..."); synchronized(this) { this.notifyAll(); } } catch (InterruptedException e) { e.printStackTrace(); } } }