File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ordered Stack.. Plz Help
Joined: Apr 05, 2001
Apr 05, 2001 12:01:00
How do you implement an ordered stack using the java.util.Stcak class? What would the new definitions be for the methods of push and pop? I'm really lost...
Joined: Sep 29, 2000
Apr 05, 2001 12:33:00
What are you REALLY trying to accomplish. Is there some driving reason that yoy think Stack is the solution???
It SOUNDS like you are wanting a sorted something, perhaps a SortedSet??
"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Ordered Stack.. Plz Help
Factorial recursion doubt.getting confused how same method is being called
basic question about <s:iterator>
WA #1.....word association
Sorting? Ordered stack?
PriorityQueue Ordering - different result when using foreach versus while loop
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014