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