when to use linkedlist vs arraylist code example
Example: arraylist vs linkedlist
- ArrayList not syncronized, array based class
- LinkedList not synchronized, doubly linked
ArrayList and LinkedList both keep ordering
ArrayList and LinkedList both allow duplicates