generating 50 random float arraylist value unique
<p>I'm trying to write code that stores 50 randomly generated floating point numbers in an ArrayList. Use a regular for-loop to cycle through the values and remove any that are less than 0.5. Then use a for-each loop to print out the values that remain.</p>

<p>this is my code so far and I don't know where to go from here... </p>

<pre><code>import java.util.ArrayList;

public class fiftyFloats {

    public static void main (String [] args) { 

        //create a reference for the array list 
        ArrayList &lt;Float&gt; vals; 

        //reserve space for it in memeory 
        vals = new ArrayList &lt;Float&gt; (50);

        for (int i = 0; i&lt;vals.size(); i++){
            i = new Float
        }

        for (Integer atPos: vals) { 
            System.out.println(vals.toString()); 
        }
    }
}
</code></pre>