1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone know java? Need help with assignment

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

  1. pixelgrinder

    pixelgrinder Jr. VIP Jr. VIP Premium Member

    Apr 1, 2008
    Likes Received:
    Home Page:
    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?