Thread: Stacks
View Single Post
  #12 (permalink)  
Old 05-05-2008, 05:26 AM
sukatoa's Avatar
sukatoa sukatoa is online now
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 500
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
If i will use an Iterator, then problem may occur if failed to do so.

But by using toArray, it only returns a shadow copy of the stack. Its just to browse the content without banging the element on that stack.(value checking only)

If something is wrong, only push and pop should be and recommended to use.

I don't know the other safe options( if any )
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote