Question: Write a reference-based implementation of a queue that uses a linear linked list to represent the items in the queue. You will need both a

Write a reference-based implementation of a queue that uses a linear linked list to represent the items in the queue. You will need both a head reference and a tail reference. Be sure that the project includes all of the following:

A Node class. Your queue ADT will need this class in order to instantiate the Node objects which make up the linear linked list.

A Queue ADT .This is a class which contains global, private head and tail

reference variables as well as the Queues wall of operations This wall of operations are the methods which are responsible for creating and managing the ADTs Linked List which. Queue ADT will use this Linked List to represent the queue.

A Test class. This class will contain a main method which instantiates an object from your Queue ADT class and invokes every Queue ADT method. What are some ways

you can invoke the Queue ADT methods to demonstrate that those methods

work in the way that they are intended to? A Java package is a group of related Java classes. Since all of the source code files in this project are related, be sure that all of the source code files are in the same package. If any of your files are in a different package, you must use an

import statement to let Net beans know the package in which the file will be found. Also, if your source code files are contained in a package other than the package, you must include a statement:

package

packageName;

Where package Name is the name of the package in which all of your

Project 4 source code

files are stored. When you are done, compare your implementation to the one given in this chapter that uses a circular linked list with one external reference.

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!