Do you specifically need a synchronized Collection? If not, then it's needless overhead. An ArrayList will be faster than a Vector. A Vector is synchronized, while an ArrayList is not.
As for which implementation of Collection to use, there are many different reasons for using various types of Collections. You can find lots of info on Sun's site. -Josh -----Original Message----- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 4:03 PM To: Struts Users Mailing List Subject: Collection Implementation Without checking the archives for specific references, I'm still sure I've read on multiple occasions, "Don't use Vectors, use ArrayLists". I was under the impression that this was because Vectors are not synchronized. After refactoring, today, I read here that ArrayLists are not synchronized: http://java.sun.com/j2se/1.4.1/docs/api/java/util/ArrayList.html Time to refactor again? I need to be using one of the static Collections.synchronized* methods, right? Beyond using Objects that are synchronized, what difference does it make which implementation of Collection I choose? m __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

