|
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.
|