Table of contents
1 Overview
As we all know, the access provided by HashMap is unordered . In some business scenarios, we want to be able to provide HashMap with ordered access. So at this point, we have two options:
- TreeMap: in the order of keys.
- LinkedHashMap: According to the order of key insertion and access. <