Java Deque methods

Beschreibung

Description methods of the class ArrayDeque
Leonardo Cesar
Karteikarten von Leonardo Cesar, aktualisiert more than 1 year ago
Leonardo Cesar
Erstellt von Leonardo Cesar vor mehr als 5 Jahre
7
0

Zusammenfassung der Ressource

Frage Antworten
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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt