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