When to use HashMap over LinkedList or ArrayList and vice-versa
Lists represent a sequential ordering of elements. Maps are used to represent a collection of key / value pairs. While you could use a map as a list, there are some definite downsides of doing so. Maintaining order: A list by definition is ordered. You add items and then you are able to iterate back … Read more