protected void remove(DequeNode node)
private void remove(DequeNode node)
   protected void remove(DequeNode node)   {      if (head == node)      {         if (node.next != null)         {            head = node.next;         }         else         {            head = null;         }      }            if (tail == node)      {         if (node.prev != null)         {            tail = node.prev;         }         else         {            tail = null;         }      }                  if (node.prev != null)      {         node.prev.next = node.next;      }            if (node.next != null)      {         node.next.prev = node.prev;      }   }