public class ArrayList extends java.lang.Object implements List, Serializable
ArrayList, 
Serialized Form| Constructor and Description | 
|---|
ArrayList()
Default Constructor, creates an empty List 
 | 
ArrayList(java.util.ArrayList toBeHiddenList)
Constructs an ArrayList from a java.util.ArrayList. 
 | 
ArrayList(int size)
Constructor specifying list size 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(int index,
   java.lang.Object o)
Inserts the specified element at the specified position in this list 
 | 
boolean | 
add(java.lang.Object o)
Adds an element. 
 | 
void | 
clear()
Removes all of the elements from this list (optional operation). 
 | 
java.lang.Object | 
clone()
Method declaration 
 | 
boolean | 
contains(java.lang.Object o)
Returns true if this list contains the specified element. 
 | 
void | 
fromList(java.util.List l)
Fill this list with the content of a given
        
java.util.List object. | 
java.lang.Object | 
get(int index)
Returns the element at the specified position in this list. 
 | 
int | 
indexOf(java.lang.Object o)
Returns the index in this list of the first occurrence of the specified
 element, or -1 if this list does not contain this element. 
 | 
boolean | 
isEmpty()
Checks if the collection contains elements. 
 | 
Iterator | 
iterator()
Returns an iterator over the elements in this collection. 
 | 
java.lang.Object | 
remove(int index)
Removes the element at the specified position in this list. 
 | 
boolean | 
remove(java.lang.Object o)
Removes one instance of the specified element. 
 | 
int | 
size()
Returns the number of elements in this collection. 
 | 
java.lang.Object[] | 
toArray()
Returns an array containing all of the elements in this collection. 
 | 
java.util.List | 
toList()
Method declaration 
 | 
java.lang.String | 
toString()  | 
public ArrayList()
public ArrayList(int size)
public ArrayList(java.util.ArrayList toBeHiddenList)
public void clear()
Listpublic boolean contains(java.lang.Object o)
Listpublic java.lang.Object get(int index)
Listpublic int indexOf(java.lang.Object o)
Listpublic java.lang.Object remove(int index)
Listpublic void add(int index,
                java.lang.Object o)
public boolean add(java.lang.Object o)
Collectionadd in interface Collectioninterfacepublic boolean isEmpty()
CollectionisEmpty in interface Collectioninterfacepublic boolean remove(java.lang.Object o)
Collectionremove in interface Collectiono - the element to be removedinterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic Iterator iterator()
Collectioniterator in interface Collectioninterfacepublic java.lang.Object[] toArray()
CollectiontoArray in interface Collectioninterfacepublic int size()
Collectionsize in interface Collectioninterfacepublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.util.List toList()
public void fromList(java.util.List l)
java.util.List object.l - The java.util.List to copy the content
       from.