Structure Mapis what you want. A good implementation is HashMap.
This data type does not allow you to use the same value for the key, but you can have as many duplicate values ββas possible.
Usage example:
Map<String, String> map = new HashMap<String, String>();
map.put("FirstName", "LastName");
System.out.println(map.get("FirstName"));
System.out.println(map.put("FirstName", "Foo"));
System.out.println(map.get("FirstName"));
, . .