Question: There are 3 CLASSES for this project and I need the main file that is not mentioned here . i do have the queue Interface

rite java tester code to find the contents of the myQueue after the following statements are ompleted and executed. oublic static void main(String[] args) 1 1) write your code here /1. Create an object of myqueue with a 'string' type System. out. println ("(nTesting enqueue operation: in"); 11 enqueue "Your first name" to myqueue Il enqueue "Jim" to myQuete 11 enqueue "Jane" to myqueue If enqueve "Jill" to myqueue 11 enqueue "Joe" to myQueue 1/ enqueue "Jess" to myqueue /I check if myqueue is empty and display the result System, out.println (" Testing dequeve operations ); 11 write a loop here to dequeue a11 contents from myqueue /f until the queue is empty 11 check if myqueue is empty and display tha result. System.out.printin (" Teating more operatihgap: Vn"); ll enqueue "Your laat name" to myqueve 1. engueve "3im" to myqueue If enqueue "Jane" to myqueue 1/ encueze "the result of dequeue () " to myguense 1/ enqueue "the reault of getFront ()" to myouede 17 enquede "seas" to myqueue 11. write a 1 oop here to dequeue al1 contents frotn nyouedel 1. whti1 the queve is empty 1 3. By midaight, Tuesday, February 28th, submit your Java source file (Main.Java) and a sereenshot of the execution result via 'Lab6 - Ch7 Queue' under the 'Submit Lab Assignments' menu in the course Blackboard. At the beginning of the code, add a heading with your name, the date submitted, a brief description of the assignment, and appropriate comments in the body. b 6 - Chapter 7 Queue Implementation 2/27/2023 Using the java.util.LinkedList class, define a class MyQueue that implements the following Qacuelnterface. public interface QueueInterface T i XW* Adds a new entry to the back of this queue. H public void enqueue (T newEntry); P.A Removes and foturns the entry at the front of this queve. v / public T dequeue (); 10* Retrievea the entry at the front of this queue. * public I getfront (): N. Detects whether this queue is empty. " public boolean isEmpty (): 1*+ Removes all entries from this queac. H public void clear(); I if end queueInterface import java.util. LinkedList: private LinkedList list = new LinkedList T(0; Boverride public void enqueue (T newEntry) I list.addLast (newEntry) : 1 boverride public I dequeue () I return list, removeFirst (): 1 Goverride public I getFront () i return list.getFirat (): 1 Coverride public boolean isEnpty() ( return 1ist.isenpty (): poverride public vold elearl) I 11st.clear ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
