I often use arrays if I know how many elements I'm likely to need before I compile the program. It doesn't happen often, but it can sometimes be helpful.
While ArrayList<E> is a good choice, if you ever start playing about with threads then you should consider using Vector<E> as it is thread safe. I hear that there is something of a performance hit when using a Vector, but it isn't much. Thus, it depends on what you are doing as to whether you'll want to use it or not.
While ArrayList<E> is a good choice, if you ever start playing about with threads then you should consider using Vector<E> as it is thread safe. I hear that there is something of a performance hit when using a Vector, but it isn't much. Thus, it depends on what you are doing as to whether you'll want to use it or not.