Anyone know java? Need help with assignment

pixelgrinder

Power Member
Joined
Apr 1, 2008
Messages
673
Reaction score
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?
 
Back
Top