Create ArrayList object

ArrayList has the constructors shown here:

ArrayList( )
builds an empty array list.
ArrayList(Collection<? extends E> c)
builds an array list that is initialized with the elements of the collection c.
ArrayList(int capacity)
builds an array list that has the specified initial capacity.

The capacity is the size of the underlying array that is used to store the elements. The capacity grows automatically as elements are added to an array list.

Home 
  Java Book 
    Collection  

ArrayList:
  1. ArrayList Class
  2. Create ArrayList object
  3. Add to ArrayList
  4. Clear an ArrayList
  5. Shallow copy of current ArrayList
  6. If contain a certain object
  7. Increases the capacity of an ArrayList
  8. Get/Replace element by index
  9. Get object for index
  10. Remove from ArrayList
  11. Get the size and trim to size
  12. If ArrayList is empty
  13. Convert ArrayList to array