|
You can search through one of Java's stacks with an iterator method because of how Java made their stacks. I believe this breaks down what a stack should be able to do. In a stack you should only be allowed to see the first element, and you should only be able to add or remove to the top of the stack.
__________________
My IP address is 127.0.0.1
|