Sep 21, 2024
push
: add an object to the top of the stack.pop
: remove an object from the top of the stack.push
: add an item.pop
: remove an item.peek
: view the top item without removing it.empty
: check if stack is empty.search
: find an item in the stack.enqueue
: add an object to the end of the queue.dequeue
: remove an object from the front of the queue.offer
: add an element to the end.poll
: remove an element from the front.peek
: view the front element without removing it.System.nanoTime()
to measure the duration of a program.