LinkedList vs ArrayList

It still gives an error:

This method must return a result of type PVector