URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       ifaq
  HTML https://ifaq.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Java related questions
       *****************************************************
       #Post#: 11--------------------------------------------------
       ArrayList vs LinkedList
       By: avinash.srin Date: August 25, 2011, 9:47 am
       ---------------------------------------------------------
       What are the differences between an ArrayList and a LinkedList?
       #Post#: 22--------------------------------------------------
       Re: ArrayList vs LinkedList
       By: avinash.srin Date: August 26, 2011, 6:42 am
       ---------------------------------------------------------
       A LinkedList is similar to an ArrayList in that it is ordered by
       index position, but it differs in that the elements are
       double-linked to one another. This linkage gives you new methods
       for adding and removing from the beginning or end.
       If your program frequently provides random access to the data of
       the list, the ArrayList class offers quick access to individual
       elements of the list. This quick access comes at a cost of
       slower operations for adding and removing in the middle of the
       list. If this latter behavior is what you desire, than the
       LinkedList class offers a better alternative. It provides quick
       sequential access, additions, and deletes, at a cost of slower
       random access.
       *****************************************************