Java doesn’t have built-in associative arrays like some languages do, but it provides the Map interface and classes like HashMap and TreeMap to fill that role.
Map
HashMap
TreeMap