title: Java : How to sort an array of floats in reverse order?
body: <p>I use the following lines to sort an array of floats in reverse order, but I got an error message, what's wrong ?</p>
  
  <pre><code>float sortedData[]=new float[100];
    ...
  Arrays.sort(sortedData,Collections.reverseOrder());
  </code></pre>
  
  <p>Error : cannot find symbol</p>
  
  <p>symbol  : method sort(float[],java.util.Comparator)
  location: class java.util.Arrays
          Arrays.sort(sortedData,Collections.reverseOrder());</p>
  
  <p>=========================================================================</p>
  
  <p>I was confused because in Jdk1.6 api, I saw this  : [ Arrays ] public static void sort(<strong>float</strong>[] a), it doesn't say : public static void sort(<strong>Float</strong>[] a)</p>