When the ArrayList is created firstly, provides the capacity for the list.

It can reduce unnecessary space.

Comment From: sbrannen

This has been merged into main.

Thanks