• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need to write URL

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??
 
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.
 
Back
Top