public final class IntStack extends Object
Constructor and Description |
---|
IntStack() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the stack.
|
int |
elementAt(int depth)
Returns the element at the specified depth in the stack.
|
int |
peek()
Peeks at the top of the stack.
|
int |
pop()
Pops a value off of the stack.
|
void |
print()
Prints the stack.
|
void |
push(int value)
Pushes a value onto the stack.
|
int |
size()
Returns the size of the stack.
|
public int size()
public void push(int value)
public int peek()
public int elementAt(int depth)
public int pop()
public void clear()
public void print()
Copyright © 2019 JBoss by Red Hat. All rights reserved.