0

Lets say I had a char array and I wanted to sort it alphabetically, I could use...

Arrays.sort(list);

However if I want to sort a char array in reverse alphabetical order.. How would I accomplish this? (I do not want to create another array, I want the array to be modified so that I can call a function and modify the array without having to return a new array if that makes sense).

Thanks.

I have tried using Collections but they do not work on char arrays...

John Drew
  • 37
  • 3

0 Answers0