Skip to content

JavaLabs-io/QueueSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

QueueSimulator

A Java-based queue simulator that manages both regular and priority queue orders using core data structures.

Why I Built This

I'm interested in how backend systems behave internally and how simple data structures can simulate real-world workflows. This project is part of my journey exploring Java backend systems, simulations, and developer-focused software projects.


Features

  • Priority and regular order handling
  • FIFO (First In First Out) queue processing
  • Enqueue and dequeue operations
  • Queue inspection using peek()
  • Queue visualization with displayQueue()
  • Unique order ID generation
  • Object-oriented design using separate classes

Technologies Used

  • Java
  • Java Collections Framework
  • Queue Interface
  • LinkedList

How to Run

  1. Clone the repository
git clone https://github.com/JavaLabs-io/QueueSimulator.git
  1. Open the project in VS Code or any Java IDE
  2. Run Main.java from the src/ folder

Sample Output

--- Current Queue ---
Priority orders (4):
  [PRIORITY] Order #1 | Saket | Item: CinnamonRoll
  [PRIORITY] Order #2 | Taylor | Item: Sourdough
Regular orders  (2):
  [REGULAR] Order #4 | Alice | Item: Bread
  [REGULAR] Order #6 | Ajaz | Item: idk
---------------------
=== Processing Orders ===
Serving  (PRIORITY): [PRIORITY] Order #1 | Saket | Item: CinnamonRoll
Serving  (PRIORITY): [PRIORITY] Order #2 | Taylor | Item: Sourdough
Serving   (REGULAR): [REGULAR] Order #4 | Alice | Item: Bread
Serving   (REGULAR): [REGULAR] Order #6 | Ajaz | Item: idk

Future Improvements

  • Cancel order functionality
  • Search orders by ID
  • JUnit tests
  • GUI version
  • REST API integration

Part of JavaLabs-IO

This project is part of JavaLabs-IO — a collection of Java backend systems, simulations, tools, and experimental software projects.

About

A Java-based queue simulator demonstrating real-world queue management with priority handling and dynamic operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages