0

I heard that linked lists are much better than arrays. But why are arrays used at all then?

Jens Hoffmann
  • 6,699
  • 2
  • 25
  • 31
A.z
  • 1
  • 1
  • 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

0 Answers0