Dynamic array length

I will use a array. But I don't know how is the size. Probably million elements.Do I need to declare and create it in advance?Thanks
[154 byte] By [ardmorea] at [2007-11-27 9:57:59]
# 1
http://java.sun.com/docs/books/tutorial/java/data/arrays.html~
yawmarka at 2007-7-13 0:28:25 > top of Java-index,Java Essentials,Java Programming...
# 2
> But I don't know how is the sizeArrays are static.You should be using an ArrayList, which is dynamic.
camickra at 2007-7-13 0:28:25 > top of Java-index,Java Essentials,Java Programming...
# 3
yes, arraylist.but do I need declare a small size array in advance.
ardmorea at 2007-7-13 0:28:25 > top of Java-index,Java Essentials,Java Programming...
# 4
> yes, arraylist.> but do I need declare a small size array in advance.no you do not.
petes1234a at 2007-7-13 0:28:25 > top of Java-index,Java Essentials,Java Programming...