Top "Hashmap" questions

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

Iterate over elements of List and Map using JSTL <c:forEach> tag

If I have a JSF backing bean return an object of type ArrayList, I should be able to use <…

list jsp foreach hashmap jstl
Finding Key associated with max Value in a Java Map

What is the easiest way to get key associated with the max value in a map? I believe that Collections.…

java hashmap
Why there is no ConcurrentHashSet against ConcurrentHashMap

HashSet is based on HashMap. If we look at HashSet<E> implementation, everything is been managed under HashMap&…

java collections concurrency hashmap hashset
Correct way to initialize HashMap and can HashMap hold different value types?

So I have two questions about HashMaps in Java: What is the correct way to initialize a HashMap? I think …

java standards hashmap
How is a JavaScript hash map implemented?

I currently work with OpenLayers and have a huge set of data to draw into a vector layer (greater than 100000 …

javascript hash hashmap
Copying a HashMap in Java

I am trying to keep a temporary container of a class that contains member : HashMap<Integer,myObject> myobjectHashMap …

java copy hashmap clone
How does a Java HashMap handle different objects with the same hash code?

As per my understanding I think: It is perfectly legal for two objects to have the same hashcode. If two …

java hashmap hashcode hash-function
How to loop through a HashMap in JSP?

How can I loop through a HashMap in JSP? <% HashMap<String, String> countries = MainUtils.getCountries(l); %> &…

java jsp loops hashmap
Does adding a duplicate value to a HashSet/HashMap replace the previous value

Please consider the below piece of code: HashSet hs = new HashSet(); hs.add("hi"); -- (1) hs.add("hi"); -- (2) hs.…

java hashmap duplicates hashset
HashMaps and Null values?

How do you pass in null values into a HashMap? The following code snippet works with options filled in: HashMap&…

java null hashmap hashcode