chapter_004/src/main/java/ru/job4j/list/MyStack.java
/**
     * This method return last element from MyStack and remove this element from MyStack.
     * @return - element.
     */
This method return last element from MyStack and remove this element from MyStack.
@return - element.
This method return last element from MyStack and remove this element from MyStack . @return - element .
@Override
    public E poll()  {
        E e = this.get(size() - 1);
        remove(size() - 1);
        return e;
    }
@ Override public E poll ( ) { E e = this . get ( size ( ) - 1 ) ; remove ( size ( ) - 1 ) ; return e ; }
This method return last element from MyStack and remove this element from MyStack.
This method return last element from MyStack and remove this element from MyStack .