Question: Implement a test suite for your implementation of ListQueue: boolean testEmpty(ListQueue yourQueue, JavaQueue correctQueue) : This function should return true if the ListQueue implementation matches
Implement a test suite for your implementation of ListQueue:
boolean testEmpty(ListQueue yourQueue, JavaQueue correctQueue):
This function should return true if the ListQueue implementation matches the JavaQueue implementation (Java ADT) when both queues are empty. Test all three functions (enqueue, dequeue, peek).
(assume that you may call any and all other methods of the class to help you solve the problem )





import java.util.Queue; public class ListQueue t private class Node /TODO Implement Linked List Node String data; Node next; public Node(String data) this . data = data; this.next null; //Connects the String to the link //Class variables here, if necessary Node front; Node back; public ListQueueO /TODO Implement constructor front = null; back = null
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
