0

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?

0

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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.