In php, one can handle a list of state names and their abbreviations with an associative array like this:
TreeMap is not an answer to your question because it sorts elements by key, while LinkedHashMap preserves original order. However, TreeMap is more suitable for the dictionary because of sorting.
Also, to maintain insertion order, you can use a LinkedHashMap instead of a HashMap.