List.add

List.add

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void add( String item )
Parameters
item
the item to be added.
Description
Adds the specified item to the end of scrolling list.



Syntax 2
public synchronized void add( String item, int index )
Parameters
item
the item to be added.
index
the position at which to add the item.
Description
Adds the specified item to the end of the scrolling list. The index is zero-based. If value of the index is -1 then the item is added to the end. If value of the index is greater than the number of items in the list, the item is added at the end.