Java Deque methods

Description

Description methods of the class ArrayDeque
Leonardo Cesar
Flashcards by Leonardo Cesar, updated more than 1 year ago
Leonardo Cesar
Created by Leonardo Cesar almost 4 years ago
0
0

Resource summary

Question Answer
boolean add(E e) Adds an element to the back of the queue and returns true or throw an exception
boolean offer(E e) Adds an element to the back(tail) of the queue and returns whether successful
void push(E e) Adds an element to the front of queue
E poll() Removes and return next element or return null if empty queue
E pop() Removes and return next element or throw an exception if empty queue
Show full summary Hide full summary

Similar

German- Beginner
PatrickNoonan
The USA, 1919-41
sagar.joban
The Geography Of Earthquakes
eimearkelly3
Periodic Table
PatrickNoonan
HSC Economics
lydia le
A-Level Physics: Course Overview
cian.buckley+1
Metallic bonding
anna.a.graysmith
Atomic Structure
Jenni
Biology Unit 4: Respiration and Photosynthesis
Charlotte Lloyd
atoms and elements
Danoa400
New GCSE history content
Sarah Egan