Creates an empty ArrayList with the specified initial capacity.
[Visual Basic] Overloads Public Sub New( _ ByVal capacity As Integer _ ) [C#] public ArrayList( int capacity ); [C++] public: ArrayList( int capacity ); [JScript] public function ArrayList( capacity : int );
When adding elements to the list and the number of elements exceeds the capacity, the capacity is doubled.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList Constructor Overload List | Capacity