Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
(4 votes)
1) ArrayList()
Creates an empty ArrayList.
Example
ArrayList arrayList = new ArrayList();
2) ArrayList(int capacity)
Creates an ArrayList with specified initial capacity.
Example
ArrayList arrayList = new ArrayList(10);
3) ArrayList(Collection c)




