Hi there,
That would be a queue, technically. Jdk already has queues implementations, one can be picked from there. The print method would get that queue as parameter,
Do you need to make use of queue or to implement a queue by your own.
In 1hour should be delivered. Please let me know.
Ioan