Using the given generic class MyQueue.java, complete the class.
It should contain the following attributes:
E innerQueue â€“ The array that will hold the contents of the innerQueue.
As well as the following constructors/methods:
MyQueue(): constructor â€“ Initializes innerQueue to be a queue with a length of 0.
add(E item): void â€“ Inserts the element into the end of queue. The array is resized using a copy of innerQueue thatâ€™s one element larger.
peek(): E â€“ Returns the value at the head of the queue without removing it, returning null if the queue is empty.
poll(): E â€“ Retrieves and removes the head of the queue, returning null if the queue is empty. The array is resized using a copy of innerQueue thatâ€™s one element smaller.
When finished, you can use the main method located inside MyQueue.java to test your methods.