Modifier and Type | Class and Description |
---|---|
class |
Stack<T> |
Modifier and Type | Method and Description |
---|---|
StackADT<java.lang.String> |
GenealogyTree.getAncestorStack(java.lang.String target)
return a Stack that contains the ancestors of the node with matching data
The root is at the bottom of the stack and the matching node is at the top
and the stack contains all ancestors of the matching data node.
|
StackADT<T> |
StackADT.reverse()
Creates a new Stack with the items of this stack
in the reverse order.
|
StackADT<T> |
Stack.reverse() |