• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

java help needed for following problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i want java source code for following problem.

Reverse the order of elements on stack S
a. using two additional stacks
b. using one additional queue
c. using one additional stack and some additional non-array variables

please reply asap with addition info for easy to understand.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Your questions sounds like a homework assignment. We're happy to help you understand how to do your homework, but we are not going to do your homework for you - because the purpose of homework is for you to learn something, and when someone else does the work for you, you will not learn anything.

So, please try to do the assignment yourself first. If you get stuck, then show us your code and explain exactly where you are stuck, and we'll help you get further with it.
 
Ranch Hand
Posts: 135
5
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bhaargav patel,
I'm also a newbie. This is like Java heaven. Don't ask code pieces. Trust me, you don't get anything other than all ask you to try it first by yourself. I highly appreciate that, cos we beginners learn alot from it. Thanks for all senior people who share their knowledge to improve and maintain this awesome forum.
I agree with Jesper de Jong
 
No thanks. We have all the government we need. This tiny ad would like you to leave now:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic