Re: sorting int[] in descending order
- From: "Daniel Dyer" <"You don't need it">
- Date: Sat, 28 Oct 2006 18:35:40 +0100
On Fri, 27 Oct 2006 16:20:23 +0100, Patricia Shanahan <pats@xxxxxxx> wrote:
2. Create an Integer array with the values from the int[] and
Arrays.sort it using a supplied Comparator that reverses the
a.compareTo(b) result.
If you choose to use this method you can make use of http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#reverseOrder().
Dan.
--
Daniel Dyer
http://www.uncommons.org
.
- References:
- sorting int[] in descending order
- From: Vahe Musoyan
- Re: sorting int[] in descending order
- From: Patricia Shanahan
- sorting int[] in descending order
- Prev by Date: JDK vs JRE
- Next by Date: Re: JDK vs JRE
- Previous by thread: Re: sorting int[] in descending order
- Next by thread: Running a Java Program
- Index(es):