title: Initialize HashMap with an array of items?
body: <p>I have the result of a long processing. I don't want to pass it directly to a HashMap and do some more computation. I want to save it and then reuse everytime.  </p>
  
  <p>My array of values looks like this:  </p>
  
  <pre><code>{0=0, 1=15, 2=70, 3=90, 4=90, 5=71, 6=11, 7=1, 8=61, 9=99, 10=100, 11=100, 12=100, 13=66, 14=29, 15=98, 17=100, 16=100, 19=100, 18=100, 21=62, 20=90, 23=100, 22=100, 25=100, 24=100, 27=91, 26=100, 29=100, 28=68, 31=100, 30=100, 34=83, 35=55, 32=100, 33=100, 38=100, 39=100, 36=100, 37=100, 42=10, 43=90, 40=99, 41=33, 46=99, 47=40, 44=100, 45=100, 48=2}  
  </code></pre>
  
  <p>Is there a way to initialize a new HashMap by passing these values? Maybe something like initializing a simple array:  </p>
  
  <pre><code>float[] list={1,2,3};  
  </code></pre>