0
Q:

queue poll vs remove

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

New to Communities?

Join the community