Please clarify one thing: Are you using the standard java.util.LinkedList class, or are you creating or using a LinkedList class that's special to this exercise?

Just the standard one

Then look at the pollFirst method that does both things in one call - it returns the first element, and it also removes it , leaving the "rest" in the List.

sorry to be a pain but could you give me an example in code? I am a very visual learner.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.