Java java.util Stack fields, constructors, methods, implement or subclass

Example usage for Java java.util Stack fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util Stack.

The text is from its open source code.

Subclass

java.util.Stack has subclasses.
Click this link to see all its subclasses.

Implementation

java.util.Stack has the following implementations.
Click this link to see all its implementation.

Constructor

Stack()
Creates an empty Stack.

Method

Objectclone()
Creates and returns a copy of this object.
booleanempty()
Tests if this stack is empty.
Epeek()
Looks at the object at the top of this stack without removing it from the stack.
Epop()
Removes the object at the top of this stack and returns that object as the value of this function.
Epush(E item)
Pushes an item onto the top of this stack.
intsearch(Object o)
Returns the 1-based position where an object is on this stack.
StringtoString()
Returns a string representation of the object.