I wonder why LinkedList doesn\'t have initialCapacity.
LinkedList
initialCapacity
I know good when to use ArrayList and when LinkedList.
ArrayList
Why would LinkedList have an initial capacity?
ArrayList is backed up by an array, so the initial capacity is the initial size of the array. LinkedList has no need of that.