All pastes #330447 Raw Edit

Miscellany

public java v1 · immutable
#330447 ·published 2007-01-27 22:25 UTC
rendered paste body
    public void run() {        System.out.println("Cashier online...");        while (!allDoneYet) {                System.out.println(allDoneYet);                Customer c = line.dequeue();                if (c == null)                    continue;                System.out.println("Processing cust...");                if (allDoneYet = c.process()) {                    System.out.println("Last cust processed...");                    synchronized(this) {                        notifyAll();                    }                    return;                }        }    }