I'm not sure what the contract of resize is but calling ensureCapacity first is probably a good idea to avoid multiple array copies if the list has to resize more than once when adding elements.