Java Deque methods

Descripción

Description methods of the class ArrayDeque
Leonardo Cesar
Fichas por Leonardo Cesar, actualizado hace más de 1 año
Leonardo Cesar
Creado por Leonardo Cesar hace más de 5 años
7
0

Resumen del Recurso

Pregunta Respuesta
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
Mostrar resumen completo Ocultar resumen completo