IT. Expert System.

Android Reference

Stack


java.util

Class Stack<E>

    • Constructor Detail

      • Stack

        public Stack()
        Constructs a stack with the default size of Vector.
    • Method Detail

      • empty

        public boolean empty()
        Returns whether the stack is empty or not.
        Returns:
        true if the stack is empty, false otherwise.
      • peek

        public E peek()
        Returns the element at the top of the stack without removing it.
        Returns:
        the element at the top of the stack.
        Throws:
        EmptyStackException - if the stack is empty.
        See Also:
        pop()
      • pop

        public E pop()
        Returns the element at the top of the stack and removes it.
        Returns:
        the element at the top of the stack.
        Throws:
        EmptyStackException - if the stack is empty.
        See Also:
        peek(), push(E)
      • push

        public E push(E object)
        Pushes the specified object onto the top of the stack.
        Parameters:
        object - The object to be added on top of the stack.
        Returns:
        the object argument.
        See Also:
        peek(), pop()
      • search

        public int search(Object o)
        Returns the index of the first occurrence of the object, starting from the top of the stack.
        Parameters:
        o - the object to be searched.
        Returns:
        the index of the first occurrence of the object, assuming that the topmost object on the stack has a distance of one.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1312 / . Delta: 0.02417 с