About 4,470 results
Open links in new tab
  1. Java HashMap Reference - W3Schools

    All HashMap Methods A list of all HashMap methods can be found in the table below. Some methods use the type of the HashMap's entries as a parameter or return value. The type of the key will be referred to as K and the type of the value will be referred to as V in the table.

  2. HashMap in Java - GeeksforGeeks

    Mar 7, 2025 · In Java, HashMap is part of the Java Collections Framework and is found in the java.util package. It provides the basic implementation of the Map interface in Java. HashMap stores data in (key, value) pairs. Each key is associated with a value, and you can access the value by using the corresponding key.

  3. HashMap (Java Platform SE 8 ) - Oracle

    Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.)

  4. Java HashMap Class Methods

    The table below contains various methods of the Java HashMap class, each with a link to a detailed explanation, examples, and real-world uses. Click on the method names to learn more about how to use them effectively in your applications.

  5. Java HashMap Methods - Programiz

    In this reference page, you will find all the hashmap methods available in Java. For example, if you need to add an element to the hashmap, use the put () method. remove all elements from HashMap. makes the copy of the hashmap. checks if the HashMap is empty. returns the number of items in HashMap. inserts the specified item to the hashmap.

  6. Hashmap in Java | Top 13 Methods of Hashmap in Java with …

    Hashmap uses hashing techniques to store and retrieve elements. For storage, it uses a linked list which is referred to as buckets. It uses two methods on the key: equals ()and hashCode () for insert and retrieves operations. While insertion, hashCode determines the bucket for storing.

  7. Complete Guide to Java HashMap (with Examples)

    Dec 5, 2024 · The HashMap, part of the Java Collections framework, is used to store key-value pairs for quick and efficient storage and retrieval operations. In the key-value pair (also referred to as an entry) to be stored in HashMap, the key must …

  8. Java Hashmap – Tutorial With Examples

    Java hashmap a complete tutorial for beginners with examples, methods and functions, explanation of each class from java key value pair to put method. Check out the complete definition, examples part for each class method, map interface java, and creation of java hasmap from java key value pair put. Check out the complete tutorial.

  9. Java HashMap with Example Programs + Java 8 Methods

    Nov 22, 2021 · HashMap has many methods as below. clone (): Create a shallow copy of the map but key and values will be not be cloned. containsKey (Object key): Checks the given key is …

  10. HashMap Class Methods in Java with Examples - GeeksforGeeks

    Mar 16, 2023 · HashMap is a data structure that uses a hash function to map identifying values, known as keys, to their associated values. It contains “key-value” pairs and allows retrieving value by key. The most impressive feature is it’s fast lookup of …

  11. Some results have been removed
Refresh