title: How to reverse an array?
body: <pre><code>XXXXXVO[] general = XXXX.getXXXX();
  
   Comparator comparator = new Comparator() {
          DateFormat f = new SimpleDateFormat("dd/MM/yyyy");
          public int compare(Object obj1, Object obj2) {
  
              XXXXX gen11 = (XXXXXVO) obj1;
              XXXXX gen22 = (XXXXXVO) obj2;
  
              String firstString = gen11.getXXXXX().toString();
              String secondString = gen22.getXXXX().toString();
  
              if (secondString == null || firstString == null) {
                  return 0;
              }
  
  
              return f.parse(firstString).compareTo(f.parse(secondString));
  
          }
      };      
  
      Arrays.sort(general, comparator);
  </code></pre>
  
  <p>Above is the code which sort the array general in ascending order.
  I want that in  descending order.
  How can I reverse this in JDK 1.4??</p>