Error Correction For The Code
<pre><code>int i = 0;
Float[] arr =null;
Float arr2 [] = null;
Iterator itr = minMaxVal.keySet().iterator();
while(itr.hasNext()){
    arr = minMaxVal.get(i);
    arr2[i] = (float) arr[0];
    i++;
}
java.util.Arrays.sort(arr2);
return arr2[0];
</code></pre>

<p>It throws an NulPointException at <code>arr2[i] = (float) arr[0];</code></p>

<p>How can overcome this. Thank You in advance....</p>
