About 50 results
Open links in new tab
  1. How do you create a dictionary in Java? - Stack Overflow

    I am trying to implement a dictionary (as in the physical book). I have a list of words and their meanings. What data structure / type does Java provide to store a list of words and their meaning...

  2. java - Difference between a HashMap and a dictionary ADT - Stack …

    Sep 17, 2015 · What is the difference between a Hash Map and dictionary ADT. And when to prefer one over another. For my programming assignment my instructor has asked to use one of them but I …

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

    There is no difference between the objects; you have a HashMap<String, Object> in both cases. There is a difference in the interface you have to the object. In the first case, the interface is …

  4. Initializing a dictionary with a specific set of data cleanly in Java

    Jan 26, 2016 · Initializing a dictionary with a specific set of data cleanly in Java Asked 10 years, 2 months ago Modified 4 years ago Viewed 29k times

  5. Implement dictionary using Java - Stack Overflow

    Dec 18, 2012 · Task Dictionary ADT The dictionary ADT models a searchable collection of key-element entries Multiple items with the same key are allowed Applications: word-definition pairs Dictionary …

  6. Iterate Dictionary in Java - Stack Overflow

    Aug 11, 2015 · I've a dictionary in java: protected Dictionary&lt;String, Object&gt; objects; Now I want to get the keys of the dictionary, so that I can get the value of the key with get() in a for loop: for (...

  7. How to create a dictionary in java - Stack Overflow

    Nov 16, 2020 · You should use the java API documentation for this. By using that, or some basic web searching, you'd find that java has the concept of a 'dictionary', but it is called a Map.

  8. java - 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? …

  9. dictionary - Java map.get (key) - Is there a way to automatically call ...

    Java map.get (key) - Is there a way to automatically call put (key) and return if the key doesn't exist? Asked 14 years, 4 months ago Modified 1 year ago Viewed 120k times

  10. java - Dictionary class - Stack Overflow

    Jun 19, 2012 · Is it possible to have multiple values, for a single key, in the Java dictionary class?