|
Traversing through a stack of objects, and puttin them info in an array
What is a good way to go through a stack of objects?
I have to compare each object of the stack, to a object I have predifined and then put that object into an array. Stopping this "process" when I find a match.
Assuming there will be a match and that the stack is not empty what would you recommend I do?
Thanks,
SZ
|