title: Java - Insert values from Array of type Float, into a New Array of type float by index
body: <p>I have 2 Arrays and an ArrayList</p>
  
  <pre><code>float[] a = new float [1000]; // contains 1000 float values
  
  float[] b = new float [1000]; // contains 1000 float values
  
  ArrayList&lt;Float&gt; c = new ArrayList&lt;Float&gt;(); // contains unique list of float values from array a
  </code></pre>
  
  <p>I wish to perform the following</p>
  
  <pre><code>for (int i=0; i&lt;a.length; i++) {
        b[c.indexOf(c.get(i)]++; 
  }
  </code></pre>
  
  <p>Essentially, i am wanting to go through the length of a, find where the first value from C is found, then insert that into a new array b.</p>
  
  <p>However i am returned with an index out of bound error, or incompatible type error expected float() found int().</p>
  
  <p>I have also experiment with wrappers when defining float, due to primitive types. </p>
  
  <p>Any help would be great.</p>