Pops an element from the stack represented by this list. In other
words, removes and returns the first element of this list.
<p>This method is equivalent to {@link #removeFirst()}.
@return the element at the front of this list (which is the top
of the stack represented by this list)
@throws NoSuchElementException if this list is empty
Pops an element from the stack represented by this list. In other words, removes and returns the first element of this list.
<p>This method is equivalent to {@link #removeFirst()}.
@return the element at the front of this list (which is the top of the stack represented by this list) @throws NoSuchElementException if this list is empty