Package java.util
Class ArrayList

Public Method clear

void clear()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Removes all of the elements from this list. The list will be empty after this call returns.

Example

   ArrayList aList = new ArrayList(10);
   aList.add("This is the first element!");
   aList.clear();

The clear() method removes the added element from the list.