Top "Hashmap" questions

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

How can I convert JSON to a HashMap using Gson?

I'm requesting data from a server which returns data in the JSON format. Casting a HashMap into JSON when making …

java json dictionary hashmap gson
Convert object array to hash map, indexed by an attribute value of the Object

Use Case The use case is to convert an array of objects into a hash map based on string or …

javascript arrays hashmap
HashMap - getting First Key value

Below are the values contain in the HashMap statusName {Active=33, Renewals Completed=3, Application=15} Java code to getting the first Key (…

java hashmap
How to convert a ruby hash object to JSON?

How to convert a ruby hash object to JSON? So I am trying this example below & it doesn't work? …

ruby-on-rails json ruby hashmap
Java: how to convert HashMap<String, Object> to array

I need to convert a HashMap<String, Object> to an array; could anyone show me how it's done?

java arrays collections hashmap
What is the difference between the HashMap and Map objects in Java?

What is the difference between the following maps I create (in another question, people answered using them seemingly interchangeably and …

java dictionary hashmap
How can I combine two HashMap objects containing the same types?

I have two HashMap objects defined like so: HashMap<String, Integer> map1 = new HashMap<String, Integer>(); …

java hashmap
Java associative-array

How can I create and fetch associative arrays in Java like I can in PHP? For example: $arr[0]['name'] = 'demo'; $…

java hashmap associative-array
Difference between HashSet and HashMap?

Apart from the fact that HashSet does not allow duplicate values, what is the difference between HashMap and HashSet? I …

java collections hashmap hashset
How to print all key and values from HashMap in Android?

I am very new for Android development, and I am trying to use HashMap in Android sample project. Now, am …

java android key hashmap