make a java file for this please.
->
Implement MyQueue ADT which uses an array data structure. Makesure to call your queue “MyQueue.”
Support the following operations:
1) enqueue(String type) — insert a new element into the FIFOqueue
2) dequeue() — remove the next element
3) isEmpty() — returns true if the queue is empty
4) printQueue() — in console prints the elements in thequeue.
—
-Max size is 20
-datatypes are String
-can use an array or ArrayList to represent the array datastructure
Simple test:
MyQueue testQ = new testQ();
testQ.enqueue(“a”);
testQ.enqueue(“b”);
testQ.printQueue();
… and so on…
Expert Answer
An answer will be send to you shortly. . . . .