Course Solutions Uncategorized (Solved) : Make Java File Please Implement Myqueue Adt Uses Array Data Structure Make Sure Call Queue Q30736961 . . . .

(Solved) : Make Java File Please Implement Myqueue Adt Uses Array Data Structure Make Sure Call Queue Q30736961 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post