Going from a double to an it you will lose precision. So if you don't care
you should simply be able to do:
double d = 0;
int i = (int)d;
Or, create a new Double Object and then call the intValue() to return the int value.
Double D = new Double(d);
int i = D.intValue();
As far as sorting the Arrays Object in reverse order, check out the Comparator class.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Comparator.html