How create List<Float>?
<p>I'm trying to create a list of float values, but it seems it's not right this way :
EDIT:</p>

<pre><code>public Supervisory() {
    this.analogs = new ArrayList&lt;Float&gt;();
}

public void active() {
    try {
        for (ObjectIdentifier oi : ois) {

            if (oi.getObjectType().intValue() == 2){
                analogs.add(new Float(10));
            }
        }

    } catch (IOException ioe) {
        throw new RuntimeException(ioe.getMessage());
    } catch (Exception ex) {
        throw new RuntimeException(ex.getMessage());
    }
}
</code></pre>

<p>My last code it was just a snippet to give the idea of my problem.</p>

<p>What's wrong with this implementation ?</p>
