public class StackContents extends Object
Constructor and Description |
---|
StackContents(int topElem) |
StackContents(int topElem,
StackContents rest) |
Modifier and Type | Method and Description |
---|---|
int |
peek() |
StackContents |
pop() |
StackContents |
push(int elem) |
static StackContents |
push(int elem,
StackContents rest) |
public StackContents(int topElem)
public StackContents(int topElem, StackContents rest)
public int peek()
public StackContents pop()
public StackContents push(int elem)
public static StackContents push(int elem, StackContents rest)
Copyright © 2018. All rights reserved.