I've made a class revolved around implementing queues using a linked list. My implementation works fine. However, I have to write a constructor which is passed a queue, and it has to make a duplicate of the original queue. By duplicate, I mean that all the elements in each queue are the same, but the actual nodes are not. How would I go about doing this?
P.S. I may not use anything from the Collections class so that means no clone() method.