Interface Stack<T>

All Known Implementing Classes:
DoublyLinkedList

public interface Stack<T>
Author:
Rohan Padhye
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
     
    pop()
     
    void
    push(T item)
     
  • Method Details

    • push

      void push(T item)
    • peek

      T peek()
    • pop

      T pop()
    • isEmpty

      boolean isEmpty()
    • clear

      void clear()