proj/proj1b/LinkedListDeque.java
@Override
    public Item removeLast() {

        if (size == 0) {
            // no such item exists, return null
            return null;
        } else {
            // remove last item and return that item
            Item lastItem = sentinel.prev.item;
            sentinel.prev.prev.next = sentinel;
            sentinel.prev = sentinel.prev.prev;
            size -= 1;

            return lastItem;
        }

    }
/**  Removes and returns the item at the back of the deque.
     *   If no such item exists, returns null.
     *
     *   Args:
     *       None
     *
     *   Returns:
     *       Last item in Linked-List-Deque or null
     * */
Removes and returns the item at the back of the deque.
If no such item exists, returns null.

None

Last item in Linked-List-Deque or null
Removes and returns the item at the back of the deque . If no such item exists returns null . None Last item in Linked - List - Deque or null
@Override
    public Item removeLast() {
        if (size == 0) {
            return null;
        } else {
            Item lastItem = sentinel.prev.item;
            sentinel.prev.prev.next = sentinel;
            sentinel.prev = sentinel.prev.prev;
            size -= 1;
            return lastItem;
        }
    }
@ Override public Item removeLast ( ) { if ( size == 0 ) { return null ; } else { Item lastItem = sentinel . prev . item ; sentinel . prev . prev . next = sentinel ; sentinel . prev = sentinel . prev . prev ; size -= 1 ; return lastItem ; } }
Removes and returns the item at the back of the deque.
Removes and returns the item at the back of the deque .
// no such item exists, return null // remove last item and return that item