Skip to content

Become a Better Java Developer!

Modern Java: new versions & features, performance, and JVM insights – tutorials and deep dives, clearly explained and directly applicable.

Implementing a Queue Using a Stack

May 16, 2022How to implement a queue with a stack (more precisely: with two stacks)? Tutorial with illustrations and Java code examples.

Want Even More Knowledge?

My blog features many articles on Java, software architecture, and performance — from foundational concepts to advanced patterns.

If you want to go deeper, check out my trainings: hands-on, easy to understand, and directly applicable to your day-to-day project work. Instead of theory, I teach principles that help you write code that is better, more maintainable, and more performant in the long run.

Explore the Java Trainings

Search