LinkedList stores a group of elements and it maintains order of insertion. For LinkedList we don’t specify the size, as we add elements, the size gets bigger automatically. Also LinkedList allows duplicates. This might sound similar to ArrayList. But the…
Tag: ConcurrentModificationException
ArrayList
The Problem An array is an object that is used to store a fixed number of values of similar type. The length of an array is established when it is created. Once created its length can not be changed. The…