Now if you tend to implement a java.util.List of such a MultiMap, you can simply initialise it as:
java.util.List<MultiMap<String, Integer>> listOfMap = new ArrayList<>();
// array list initialisation within which the multimap can be initialised using previous code
listOfMap.add(map);
You already have initialized the
MultiMap
precisely using:Now if you tend to implement a
java.util.List
of such a MultiMap, you can simply initialise it as: