About 185,000 results
Open links in new tab
  1. dictionary - Create Map in Java - Stack Overflow

    Feb 7, 2013 · I'd like to create a map that contains entries consisting of (int, Point2D) How can I do this in Java? I tried the following unsuccessfully. HashMap hm = new HashMap(); hm.put(1, new …

  2. java - Map of maps - how to keep the inner maps as maps ... - Stack ...

    Dec 3, 2016 · However, when I got each inner map, the map I created originally became an Object and I cannot use key to access its value as I do with the outer map. To learn from you experts, I would like …

  3. Best way to create an empty map in Java - Stack Overflow

    Since Map is an interface, you need to pick some class that instantiates it if you want to create an empty instance. HashMap seems as good as any other - so just use that.

  4. java - How to set several specific locations in Google Map? - Stack ...

    Jul 24, 2016 · 0 I want to make an android application for bicycle stations in Tehran. For that I need to show specific and static locations on the map like this: I tried several libraries from Github but didn't …

  5. collections - Java Ordered Map - Stack Overflow

    Is there an object in Java that acts like a Map for storing and accessing key/value pairs, but can return an ordered list of keys and an ordered list of values, such that the key and value lists ar...

  6. java - iterating over and removing from a map - Stack Overflow

    Dec 11, 2009 · If this method and the other method that modify the map are in synchronized blocks, I don't see why you have to do anything? Maybe I'm not understanding your question completely? Can …

  7. java - Remove entry from map without iterating - Stack Overflow

    Oct 17, 2013 · How do I remove entry from Java Map without using iteration using value or key. Basically in my map, I am using containsKey() then map.remove() to remove it.

  8. How to search in a List of Java object - Stack Overflow

    Oct 30, 2012 · If there can be multiple samples per key, use Map<String, List<Sample>>, otherwise use Map<String, Sample>. If you use multiple keys, you will have to create multiple maps that hold the …

  9. List of WebElements by Selenium and Java - Stack Overflow

    Apr 7, 2022 · List of WebElements by Selenium and Java Asked 3 years, 8 months ago Modified 3 years, 8 months ago Viewed 6k times

  10. java - How to display routes to and from a location using Google Maps ...

    Feb 7, 2023 · You can integrate Google Maps into your Android Studio project and display the route between two locations using the Google Maps Directions API. You'll need to obtain an API key from …