How I can get the third value for the first key in this map? Is this possible?
Libraries exist to do this, but the simplest plain Java way is to create a Map of List like this:
Map
List
Map<Object,ArrayList<Object>> multiMap = new HashMap<>();
2.1m questions
2.1m answers
60 comments
57.0k users