Anyone know java? Need help with assignment

Discussion in 'BlackHat Lounge' started by pixelgrinder, Feb 16, 2011.

  1. pixelgrinder

    pixelgrinder Jr. VIP Jr. VIP

    Joined:
    Apr 1, 2008
    Messages:
    670
    Likes Received:
    346
    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?