Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Wayne Crawford   on May 28 In Java Category.

  
Question Answered By: Hadil Khan   on May 28

I assume you meant Arrays.sort(arr), not Array.sort(arr).

That should sort  the array  OK. If it didn't work for you, post your code and
we'll look at it.

However, you indicate "high to low", so you're talking a descending sort. For
that, I think you need to go to Collections.sort and use a comparator. See
java.sun.com/.../Collections.html for
information.

Share: