About 230,000 results
Open links in new tab
  1. Implementing Associate Array in Java - GeeksforGeeks

    Nov 27, 2020 · An associate array is an abstract datatype like a map that is composed of a (key, value) pair, such that each key-value appears at most once in the collection. Basically, an …

  2. hashmap - Java associative-array - Stack Overflow

    Jul 3, 2018 · Java doesn't support associative arrays, however this could easily be achieved using a Map. E.g., Map<String, String> map = new HashMap<String, String>(); map.put("name", …

  3. Associative Array in Java - Delft Stack

    Feb 12, 2024 · In Java, the basic syntax for implementing an associative array involves declaring a variable of type Map<KeyType, ValueType>, where KeyType represents the data type for …

  4. Implement Associative Array in Java - Online Tutorials Library

    Feb 27, 2025 · Learn how to implement an associative array in Java with examples and detailed explanations.

  5. Know How to Create Associative Array in Java? - EDUCBA

    Jun 23, 2023 · Guide to Associative Array in Java. Here we discuss Syntax, how to create an associative array in java along with examples and advantages.

  6. Java Program to Implement Associative Array - Tpoint Tech

    Implementing an associative array in Java using HashMap is straightforward and efficient. The HashMap class provides various methods to add, retrieve, iterate, and remove key-value …

  7. Implementation of Associative Array in Java - CodeSpeedy

    In this post, we will learn how to implement Associative Array in Java. An associative array is an array with named indexes. It consists of elements in form of key-value pairs where each key is …

  8. How to Create and Use Associative Arrays in Java

    In Java, associative arrays can be effectively recreated using the `Map` interface, allowing you to store key-value pairs in a structure similar to PHP's arrays. Below is a detailed guide on how …

  9. Java Program to Implement Associate Array - Sanfoundry

    An associative array, map, symbol table, or dictionary is an abstract data type composed of a collection of (key, value) pairs, such that each possible key appears at most once in the …

  10. How to use keys/values from regular array to create associative array ...

    Nov 28, 2020 · Essentially I'm trying to give it a regular array, run some calculations, and then save some of those values in a new array where the original key is preserved. So basically the …

Refresh