Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
38.9K+ articles
DSA
22.5K+ articles
Java
10.5K+ articles
Java-Functions
4.1K+ articles
Java Programs
1.9K+ articles
Java - util package
1.5K+ articles
Java-Collections
1.1K+ articles
Java Examples
242+ articles
deque
64+ articles
Java-Stack
56+ articles
java-deque
15 posts
Recent Articles
Popular Articles
How to Use Deque as a Stack in Java?
Last Updated: 29 January 2024
The Deque extends the Queue interface and provides additional methods to support operation at both ends. This interface is part of the java.util package. The Deque interfa...
read more
Java
Java-Collections
Java Programs
java-deque
Picked
Java-Stack
Java Examples
Deque descendingIterator() Method in Java
Last Updated: 01 December 2024
ThedescendingIterator()method ofthe Deque Interfacereturns an iterator over the elements in this deque in reverse order. The elements will be returned from the last to the...
read more
Java
Java - util package
Java-Functions
java-deque
Deque iterator() method in Java
Last Updated: 20 June 2020
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 order from first (head)...
read more
Java
Java - util package
Java-Functions
java-deque
Deque getFirst() method in Java
Last Updated: 19 September 2023
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 exception when the Deque is empt...
read more
Java
Java - util package
Java-Functions
java-deque
Deque element() method in Java
Last Updated: 19 December 2021
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 returns the head of t...
read more
Java
Java - util package
Java-Functions
java-deque
Deque getLast() method in Java
Last Updated: 17 January 2022
The getLast() method of Deque Interface returns the last element or the tail of the Deque. It does not deletes the element. It throws an exception when the Deque is empty....
read more
Java
Java - util package
Java-Functions
java-deque
Deque offer() method in Java
Last Updated: 21 September 2018
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 restrictions. This...
read more
Java
Java - util package
Java-Functions
java-deque
Deque add() method in Java
Last Updated: 20 November 2020
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 the Deque is capacity restricted and no sp...
read more
Java
Java - util package
Java-Functions
java-deque
Deque contains() method in Java
Last Updated: 21 September 2018
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 of the element, then it re...
read more
Java
Java - util package
Java-Functions
java-deque
Deque offerLast() method in Java
Last Updated: 21 September 2018
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 without violating capacity rest...
read more
Java
Java - util package
Java-Functions
java-deque
Deque offerFirst() method in Java
Last Updated: 19 September 2018
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 without violating capacity r...
read more
Java
Java-Collections
Java - util package
Java-Functions
java-deque
Deque addLast() method in Java
Last Updated: 03 December 2019
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 the Deque is capacity restricted and n...
read more
Java
Java-Collections
Java - util package
Java-Functions
java-deque
Java.util.ArrayDeque Class in Java | Set 2
Last Updated: 02 November 2022
Java.util.ArrayDeque Class in Java | Set 1More Methods of util.ArrayDeque Class :16. offer(Element e) : java.util.ArrayDeque.offer(Element e) : inserts element at the end ...
read more
Java
Java - util package
deque
java-deque
Java.util.ArrayDeque Class in Java | Set 1
Last Updated: 22 August 2022
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 n...
read more
Java
Java - util package
deque
java-deque
Deque Interface in Java
Last Updated: 10 January 2025
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 adding or removing elements ...
read more
Java
Java-Collections
deque
java-deque
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !