Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

List.List

Creates a List object.

Syntax

public List()

public List( int capInit )

public List( int capInit**, int** capInc )

public List( Object[] items )

public List( Object[] items**, int** capInc )

Parameters

capInit

The initial capacity for the list.

capInc

The amount to increase the capacity by when the current capacity is exceeded. If no value is specified for this parameter, the capacity increment is 0. When a list has a 0 capacity increment, it doubles in size whenever the capacity is exceeded.

items

The array of items to initially populate the list with.

Remarks

The default constructor has an initial size of 10 items and a capacity increment of 0. When a list is created with a 0 capacity increment, the list doubles in size whenever the capacity is exceeded.