Suppose that we want to add a method to a class of queues that will splice two queues together. This method adds to the end of a queue all items that are in a second queue. The header of the method could be as follows:
public void splice(QueueInterfaceanotherQueue)
Write this method in such a way that it will work in any class that implements QueueInterface
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.