• Post Reply Bookmark Topic Watch Topic
  • New Topic

java help needed for following problem  RSS feed

 
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
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • 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: 132
5
Eclipse IDE Java Postgres Database
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!