Interface Stack

  • All Known Implementing Classes:
    LList

    public interface Stack
    A simple stack definition; restrictive in that you cannot access arbitrary stack elements.
    Author:
    Terence Parr MageLang Institute
    • Method Detail

      • height

        int height()
      • pop

        java.lang.Object pop()
                      throws java.util.NoSuchElementException
        Throws:
        java.util.NoSuchElementException
      • push

        void push​(java.lang.Object o)
      • top

        java.lang.Object top()
                      throws java.util.NoSuchElementException
        Throws:
        java.util.NoSuchElementException