About 53 results
Open links in new tab
  1. What is a hash map in programming and where can it be used

    Apr 7, 2010 · Hashmap is used for storing data in key value pairs. We can use a hashmap for storing objects in a application and use it further in the same application for storing, updating, deleting values.

  2. collections - What are the differences between a HashMap and a ...

    What are the differences between a HashMap and a Hashtable in Java? Which is more efficient for non-threaded applications?

  3. What is the difference between the HashMap and Map objects in Java?

    Jan 5, 2017 · 64 Map is an interface that HashMap implements. The difference is that in the second implementation your reference to the HashMap will only allow the use of functions defined in the Map …

  4. Difference between HashSet and HashMap? - Stack Overflow

    Apart from the fact that HashSet does not allow duplicate values, what is the difference between HashMap and HashSet in their implementation? It's a little bit vague because both use hash tables to...

  5. java - Iterate through a HashMap - Stack Overflow

    Jul 1, 2009 · Since all maps in Java implement the Map interface, the following techniques will work for any map implementation (HashMap, TreeMap, LinkedHashMap, Hashtable, etc.) Method #1: …

  6. Java, How to add values to Array List used as value in HashMap (a …

    The problem is I know how to work with array lists and hashmaps normally, but I'm not sure how to even begin with this example. So how would I, or example, add something to ArrayList inside HashMap? …

  7. How to define Rust HashMap where the keys are refences to the values ...

    May 22, 2025 · The key is to use hashbrown::HashTable. hashbrown is the crate that powers the hashmap in std, and its HashTable is a "raw" hash map, with more basic API. Instead of keys and …

  8. How to directly initialize a HashMap (in a literal way)?

    This creates an anonymous subclass of HashMap, whose instance initializer puts these values. (By the way, a map can't contain twice the same value, your second put will overwrite the first one.

  9. Difference between HashMap, LinkedHashMap and TreeMap

    What is the difference between HashMap, LinkedHashMap and TreeMap in Java? I don't see any difference in the output as all the three has keySet and values. Also, what are Hashtables? …

  10. Storing and Retrieving ArrayList values from hashmap

    Oct 23, 2013 · Storing and Retrieving ArrayList values from hashmap Asked 12 years, 6 months ago Modified 3 years, 8 months ago Viewed 236k times