Is it possible with java, the hash table can display the same keys for different values? .. How can I get both values from hashtable ...
you cannot unless you save the key value as a list of values.
take a look at Google Multimap: http://google-collections.googlecode.com/svn/trunk/javadoc/index.html?com/google/common/collect/Multimap.html
You cannot do this, all keys on a Hash or Hash Table card must be unique.
Then you need to consider another collection
Source: https://habr.com/ru/post/1780599/More articles:Извлечение значений из списков, разделенных запятыми - regexuploading a file and then copying it to two different directories? - fileJQuery test if div is first child? - jqueryDebug = true compilation - change without recompilation? - asp.netHow to convert a Java object to a C ++ object? - javaКак контролировать лень на примере Double каждый элемент списка - haskellPHP: function with equal sign as parameter? - functionДублировать каждый элемент в списке Haskell - haskellSTL std :: map dynamic ordering - c ++UDP SO_TIMESTAMP in windows - windowsAll Articles