Newbie Java array question

Status
You're currently viewing only forquare's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

forquare

Seniorius Lurkius
37
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.
 
Status
You're currently viewing only forquare's posts. Click here to go back to viewing the entire thread.
Not open for further replies.