In this first problem, you will declare the instance variable named 'list' of type ArrayList<E>. YOU MUST call this instance...
X1057: ArrayQueue - constructor
In this first problem, you will declare the instance
variable named 'list' of type ArrayList<E>. YOU MUST call
this instance variable list. In the
constructor, instantiate the list by creating a new
ArrayList<E>. The clear() method should just
also create a new list as a way to initialized it.
You can assume the class definition is there for you:
public class ArrayQueue<E> implements QueueADT<E> {
// code for the problems goes here
}
You might want to look at the documentation for
ArrayList
to refresh your memory of how to use that class.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.