ArrayList: Backed by a dynamic resizable array. Random accessget(index)is O(1); inserting/deleting in the middle is O(n). Best choice 95% of the time.LinkedList: Doubly-linked list. Fast O(1) insertions/deletions at both ends, butget(index)is O(n) and uses more memory per node.
ADVERTISEMENT