Top "Hashmap" questions

A data structure that uses a hash function to map identifying values, known as keys, to their associated values

How to create a HashMap with two keys (Key-Pair, Value)?

I have a 2D array of Integers. I want them to be put into a HashMap. But I want to …

java hash hashmap hashcode
map vs. hash_map in C++

I have a question with hash_map and map in C++. I understand that map is in STL, but hash_…

c++ map hashmap
HashMap get/put complexity

We are used to saying that HashMap get/put operations are O(1). However it depends on the hash implementation. The …

java data-structures hashmap complexity-theory
HashMap to return default value for non-found keys?

Is it possible to have a HashMap return a default value for all keys that are not found in the …

java dictionary hashmap
Difference between HashMap and Map in Java..?

Possible Duplicate: Java - HashMap vs Map objects I want to know the difference between HashMap and Map in java..??

java hashmap
Best way to create an empty map in Java

I need to create an empty map. if (fileParameters == null) fileParameters = (HashMap<String, String>) Collections.EMPTY_MAP; The …

java dictionary collections hashmap
adding multiple entries to a HashMap at once in one statement

I need to initialize a constant HashMap and would like to do it in one line statement. Avoiding sth like …

java android iphone hashmap nsdictionary
How to convert JSON to a Ruby hash

I have a JSON object holding the following value: @value = {"val":"test","val1":"test1","val2":"test2"} I want to loop …

ruby json hashmap
Ruby convert Object to Hash

Let's say I have a Gift object with @name = "book" & @price = 15.95. What's the best way to convert that to …

ruby object hashmap instance-variables
Print all key/value pairs in a Java ConcurrentHashMap

I am trying to simply print all key/value pair(s) in a ConcurrentHashMap. I found this code online that …

java collections hashmap concurrenthashmap