Assignment: Tests for a Stack
A
Stack
implements common stack data structure.
You can push(), pop(), and peek() elements.
Throws
StackException
if you do something stupid.
Stack
+ Stack( capacity )
+ capacity( ): int
+ size( ): int
+ isEmpty( ): boolean
+ isFull( ): boolean
+ push( T ): void
+ pop( ): T
+ peek( ): T