Categories
What can replace TreeMap?
Hello, tell me, is there a TreeMap replacement that allows you to store key-value data with several identical keys? For example, C++ has multimap for this.
Answer the question
In order to leave comments, you need to log in
Multiple values for the same key? What's stopping you from doing this: Another option is to use guava multimap
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>19.0</version> </dependency>
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question