Description: To implement the first queue you may use the generic node class. The second queue must be implemented using a fixed-size array.
You must also build a main method that allows the user to enter strings into the queue, get and print the string at the head of the queue (by entering the command "poll"), insert a null value (command "null"), or exit the program (command "quit"). Any other string entered by the user should be inserted into the queue by calling the offer method.
By simply changing the name of the class used in the main method, your main method should work with either of your two classes. Thus, the C++ inherit feature could be considered.
The framework of the main function is given below, your program should work correctly with the main function (notice the class name).
To Search:
File list (Check if you may need any files):
data.txt
output.txt