User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,617 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1353 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 1
Reputation: Punkr63 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Punkr63 Punkr63 is offline Offline
Newbie Poster

Stack and queue

  #1  
Nov 17th, 2007
I need to create a Java program that implements both a stack and a queue (and not a palindrome problem) any suggestions?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 215
Reputation: sillyboy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Posting Whiz in Training

Re: Stack and queue

  #2  
Nov 17th, 2007
Do you understand the concept of a stack & a queue? (That is half the problem).

If you do, think of a stack or queue as an object (class). This object should hold the contents of the particular stack / queue and also the methods it has.

Write some code and then people will be able to isolate the exact issues you are having.
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: Nickk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Nickk Nickk is offline Offline
Newbie Poster

Re: Stack and queue

  #3  
Nov 17th, 2007
Hi,

here are a couple of examples of using a Stack and a Queue.
Hope it helps.

/Nickk

http://www.javadb.com/using-a-stack
http://www.javadb.com/using-a-queue-or-linkedlist
http://www.javadb.com
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 9:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC