The Setup
Suppose that we already have a class Queue for handling queues
of strings (which, by the way, you should!).
Below is a description of its interface, and an example main()
using it:
Your Job
Define a class
CountingQueue that has the same
interface as
Queue, but with the additional method
public int size()
... that returns the number of elements currently in the queue.