I heard that linked lists are much better than arrays. But why are arrays used at all then?
Asked
Active
Viewed 38 times
0
-
Or maybe a duplicate of this: http://stackoverflow.com/questions/434761/array-versus-listt-when-to-use-which – Stephen C Jul 13 '15 at 23:08
-
I can't under stand why arrays ? – A.z Jul 13 '15 at 23:19
-
http://www.cs.umd.edu/~clin/MoreJava/Container/why-array.html – Andy Turner Jul 13 '15 at 23:27
-
Why arrays? 1) sometimes you don't need a `Collection` compatible API. 2) sometimes a `Collection` API has too many overheads, 3) a `Collection` API typically has to be implemented on top of a lower level primitive ... like an array. – Stephen C Jul 14 '15 at 01:36