Skip to content

Tag Archives: java-deque

The descendingIterator(E e) method of Deque Interface returns an iterator over the elements in this deque in a reverse sequential order. The elements will be… Read More
The iterator() method of Deque Interface returns an iterator over the elements in this deque in a proper sequence. The elements will be returned in… Read More
The getFirst() method of Deque Interface returns the first element or the head of the Deque. It does not deletes the element. It throws an… Read More
The element() method of Deque Interface returns the element at the front the container. It does not deletes the element in the container. This method… Read More
The getLast() method of Deque Interface returns the last element or the tail of the Deque. It does not delete the element. It throws an… Read More
The offer(E e) method of Deque Interface inserts the specified element into this Deque if it is possible to do so immediately without violating capacity… Read More
The add(E e) method of Deque Interface inserts the element passed in the parameter to the end of the Deque if there is space. If… Read More
The contains(E e) method of Deque Interface check for the presence of the element e in the Deque container. If the Deque contains one occurrence… Read More
The offerLast(E e) method of Deque Interface inserts the specified element into the end of the Deque if it is possible to do so immediately… Read More
The offerFirst(E e) method of Deque Interface inserts the specified element into the front of the Deque if it is possible to do so immediately… Read More
The addLast(E e) method of Deque Interface inserts the element passed in the parameter to the end of the Deque if there is space. If… Read More
Java.util.ArrayDeque Class in Java | Set 1 More Methods of util.ArrayDeque Class :  16. offer(Element e) : java.util.ArrayDeque.offer(Element e) : inserts element at the end of… Read More
java.util.ArrayDeque class describes an implementation of a resizable array structure which implements the Deque interface. Array deques has not immutable and can grow as necessary. They… Read More
The Deque interface present in java.util package is a subtype of the queue interface. The Deque is related to the double-ended queue that supports addition… Read More

Start Your Coding Journey Now!