All pastes #192676 Raw Edit

Mine

public text v1 · immutable
·published 2006-10-06 03:42 UTC
rendered paste body
    public Process pop() {
        System.out.println("calling it");
        if (isEmpty() == true){        
            return null;
        } else {
            System.out.println("done calling: " + ready.size());
        }

	// remove from beginning of queue
	return ready.removeFirst();
    }

    public boolean isEmpty() {        
        boolean p = ready.isEmpty();
        System.out.println("zz " + ready.size() + "       " + p);
        return p;
    }


--------



calling it
zz 0       true
done calling: 0