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 about 5 years ago
2
0
1 2 3 4 5 (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

0 comments

There are no comments, be the first and leave one below:

Similar

Malware Quiz
khibbitt
Biology- Genes, Chromosomes and DNA
Laura Perry
AQA Biology A2 Unit 4 Respiration
Gemma Lucinda
Macbeth - Charcters
a.agagon
Edexcel Additional Science Biology Topic 2- Life Processes
hchen8nrd
P1 quiz
I M Wilson
TÂM LÍ HỌC ĐẠI CƯƠNG
Nguyễn Nguyên Nh
Genes, The Genetic Code, DNA and Chromosomes
Bee Brittain
Histologie
Moloșnicov Tanciu