Need to write URL

imported_nautique

Senior member
Jul 14, 2004
346
0
0
Dunno how that happened. I need to write URL's to an array.

I need to keep track of URL's in an array of some object. I need to be able to sort, and search through the contents of the array. What does everyone recommend that would be the best Object. The List Object??
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
List is an interface (not technically an Object) but it is usually the best compromise between abstraction and specifics. I've never needed to do anything to a List implementation that I couldn't do with the List.


Anyways, the implementation possibilities are:

Vector - old, not really recommended unless you require synchronized access. Won't kill you to use it though

ArrayList - newer, pretty much identical to Vector except without built in synchronization so it's supposedly faster. I've never noticed the difference between the two but then I've never benchmarked them

LinkedList - really only appropriate if you will be using the List from the ends and really require that extra little bit of speed.