public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; }
public E remove() { E x = poll(); if (x != null) return x; else throw new NoSuchElementException(); }
  public E remove()  {    E result = poll();    if (result == null)      throw new NoSuchElementException();    return result;  }