Thread: Stacks
View Single Post
  #5 (permalink)  
Old 05-03-2008, 08:03 PM
Zosden's Avatar
Zosden Zosden is offline
Senior Member
 
Join Date: Apr 2008
Posts: 353
Zosden is on a distinguished road
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
Reply With Quote