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