About 10,500,000 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 Equivalent to Python Dictionaries - Stack Overflow

    Oct 8, 2009 · Any example that illustrates a java equivalent of python's dictionary in action. A useful answer include some example because most people come here to see examples and use them in …

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

    Nov 6, 2008 · 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 …

  4. Iterate Dictionary in Java - Stack Overflow

    Aug 11, 2015 · I've a dictionary in java: protected Dictionary<String, Object> 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 (...

  5. Foreach loop in java for Dictionary - Stack Overflow

    Feb 21, 2012 · Dictionary<string, Label> LableList = new Dictionary<string, Label>(); foreach (KeyValuePair<string, Label> z in LabelList); I don't know how to do this is java, for example I did this

  6. What is the difference between the Dictionary class and the Map class ...

    Sep 18, 2014 · 2 Dictionary is an abstract class whereas Map is an interface, hence it is more Java-idiomatic. Dictionary was deprecated early in Java 1.2 and replaced by its better interface …

  7. 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 9 years, 11 months ago Modified 3 years, 8 months ago Viewed 29k times

  8. What is the difference between a map and a dictionary?

    Mar 13, 2018 · Two terms for the same thing: "Map" is used by Java, C++ "Dictionary" is used by .Net, Python "Associative array" is used by PHP "Map" is the correct mathematical term, but it is avoided …

  9. String Comparison in Java - Stack Overflow

    Oct 31, 2010 · Leading from answers from @Bozho and @aioobe, lexicographic comparisons are similar to the ordering that one might find in a dictionary. The Java String class provides the …

  10. dictionary - Java Class that implements Map and keeps insertion order ...

    I'm looking for a class in java that has key-value association, but without using hashes. Here is what I'm currently doing: Add values to a Hashtable. Get an iterator for the Hashtable.entrySet().