(Aug 3, 2016 12:01 AM)Folks Wrote: Is there any reason to use arrays as collections seem superior in almost every way and I've read some articles on stack overflow which seem to agree with me.
Depends on what you're using it for and what collection it is. For example ArrayList uses delegation on an array, while LinkedList uses linked nodes.
Getting the Nth element from an array is possible with O(1) complexity, but getting the Nth element from a LinkedList is done in O(n) complexity (if it's not circularly linked, in which case it is still worse than O(1)), as you have to traverse the link in order to find your element before you can return it.
I suggest you take a course in datastructures if your school offers it, or read up on it online. Once you understand how the different structures work and their pros and cons it's easier to choose which one you need.