Libraries exist to do this, but the simplest plain Java way is to create a Map of List like this:
Map<Object,ArrayList<Object>> multiMap = new HashMap<>();
Libraries exist to do this, but the simplest plain Java way is to create a Map of List like this:
Map<Object,ArrayList<Object>> multiMap = new HashMap<>();