Array to HashMap?

Discussion in 'Plugin Development' started by civ77, Apr 27, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    civ77

    I would like to create a HashMap<string, int> with keys from the contents of the array and ints from the length of the length of the key. How would I do that?
     
  2. 1. construct the hashmap
    2. iterate through the array (loop)
    3. call put(...) on your hashmap for every entry, using the values from your array
     
    civ77 likes this.
  3. Offline

    civ77

    Thanks
     
Thread Status:
Not open for further replies.

Share This Page