wood burning stoves 2.0*
The moose likes Java in General and the fly likes Stack clearing problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Stack clearing problem." Watch "Stack clearing problem." New topic
Author

Stack clearing problem.

Adam Ellsworth
Greenhorn

Joined: Sep 25, 2004
Posts: 21
I'm writing a simple palindrome problem but its giving me a hard time. I'm using stack.empty(); to empty the stack but it is only removing the top element of the stack. Anyone know why it would do this?

P.S. My queue.clear(); works fine.

Thanks in advance.
Adam Ellsworth
Greenhorn

Joined: Sep 25, 2004
Posts: 21
Nevermind, just tried stack.clear(); and that worked, ugh, lol.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack clearing problem.
 
Similar Threads
How to find out where an Exception was thrown ?
WA #1.....word association
NullPointerExcpetion Help
Novice Session Question
Java Mail error java.lang.SecurityException: