Package utilities

Interface StackADT<E>

Type Parameters:
E - The type of elements in this stack
All Known Implementing Classes:
MyArrayList

public interface StackADT<E>
An interface representing the Stack Abstract Data Type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the data of the element to the last position
    pop()
    Removes the element in the last position
    void
    push(E element)
    Returns the data of the element to the last position