Question: I need help with this Java Data Structures Assignment. Thanks Linked Queue Class - You will write the LinkedQueue.java class which will implement the Queue

I need help with this Java Data Structures Assignment. Thanks

Linked Queue Class - You will write the LinkedQueue.java class which will implement the Queue Interface. Please note that Queue Interface extends the Iterable Interface. Also note that the Linked Queue Class should be a Doubly Linked Queue.

Node Class - You will write the Node.java. Please note that the Node Class is a node for a Doubly Linked Queue.

Information On The Iterable Interface - The Iterable Interface requires you to implement one method Iterator iterator().

Element Iterator Class - You will write the ElementIterator.java class which will implement the Iterator Interface. Please note, you only need to implement two methods from the Iterator interface: boolean hasNext() and E next().

Driver.java

I need help with this Java Data Structures Assignment. Thanks Linked Queue

Queue Interface Methods

Class - You will write the LinkedQueue.java class which will implement the

Queue Interface. Please note that Queue Interface extends the Iterable Interface. Also

Node Class

note that the Linked Queue Class should be a Doubly Linked Queue.Node Class - You will write the Node.java. Please note that the

Iterable Interface Method

Node Class is a node for a Doubly Linked Queue. Information OnThe Iterable Interface - The Iterable Interface requires you to implement one

Iterator Interface Methods

method Iterator iterator(). Element Iterator Class - You will write the ElementIterator.java

class which will implement the Iterator Interface. Please note, you only need

Queue Test cases All the elements being enqueued and dequeued from your queues must be instances of the java. land. String class. 1. Create an instance of your queue that accepts java.lang.String objects. Starting with an empty queue. use the enqueue e) method to add 10.000 java lang String objects (E representing the strings ("String 1 s String 10000") to the Queue. 2. Starting with an instance of your queue that accepts java.lang. Stringobjects that is fully populated with 10,000 java lang. String objects representing the strings ("String 1" K s String 10000 in the Queue. Use the dequeue method to remove all the objects from the queue, one at a time. 0 3. Starting with an instance of your queue that accepts java. lang. String objects that is fully populated with 10,000 java lang. String objects representing the strings ("String 1." s String 10000 in the Queue. Use the Iterator method to obtain an ElementIterator object. Use the ElementIterator object to display the strings from the queue one string per line. Queue Test cases All the elements being enqueued and dequeued from your queues must be instances of the java. land. String class. 1. Create an instance of your queue that accepts java.lang.String objects. Starting with an empty queue. use the enqueue e) method to add 10.000 java lang String objects (E representing the strings ("String 1 s String 10000") to the Queue. 2. Starting with an instance of your queue that accepts java.lang. Stringobjects that is fully populated with 10,000 java lang. String objects representing the strings ("String 1" K s String 10000 in the Queue. Use the dequeue method to remove all the objects from the queue, one at a time. 0 3. Starting with an instance of your queue that accepts java. lang. String objects that is fully populated with 10,000 java lang. String objects representing the strings ("String 1." s String 10000 in the Queue. Use the Iterator method to obtain an ElementIterator object. Use the ElementIterator object to display the strings from the queue one string per line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!