I need to create a Java program that implements both a stack and a queue (and not a palindrome problem) any suggestions?

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.