Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ordered Stack.. Plz Help

 
CP Lau
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic