Couldn't see any reason not to use a foreach loop here, and actually - .get() on a LinkedList
is particularly inefficient.