pixelgrinder
Power Member
- Apr 1, 2008
- 673
- 311
I have a Java assignment for a class Im taking and I CANNOT figure it out. I am suppose to sort a stack in ascending order and print the results with a stack of integers. I ONLY need to print them in ascending order, not create a new stack and return it.
I can ONLY use push, pop, peek and isEmpty. I can use as many stacks as needed. Anyone help?
I can ONLY use push, pop, peek and isEmpty. I can use as many stacks as needed. Anyone help?