Create (enqueue) 6 riders by name § Iterate over the queue, print all riders o Peek at the queue / print the result o Remove (dequeue) the head of the queue § Iterate over the queue, print all riders o Add two more riders to the queue o Peek at the queue & print the result o Remove the head & print the result § Iterate over the queue, print all riders
Simple JAVA queue code implementation
please help for any part, please be clear, thank you
Given an interface for Queue
- Without using the java collections interface (ie do not import java.util.List,
LinkedList, Stack, Queue...)
- Create an implementation of Queue interface provided
- For the implementation create a tester to verify the implementation of that
data structure performs as expected
Wait in line – Queue (fifo)
- Implement the provided Queue interface ( fill out the implementation shell)
- Put your implementation through its paces by exercising each of the methods in
a test harness
- Add to your ‘BusClient’ the following functionality using your Queue
-
o Create (enqueue) 6 riders by name
§ Iterate over the queue, print all riders
o Peek at the queue / print the result
o Remove (dequeue) the head of the queue
§ Iterate over the queue, print all riders
o Add two more riders to the queue
o Peek at the queue & print the result
o Remove the head & print the result
§ Iterate over the queue, print all riders

Step by step
Solved in 2 steps with 1 images









