Skip to content
Advertisement

Tag: sorting

Java Array Sort descending?

Is there any EASY way to sort an array in descending order like how they have a sort in ascending order in the Arrays class? Or do I have to stop being lazy and do this myself :[ Answer You could use this to sort all kind of Objects Arrays.sort() cannot be used directly to sort primitive arrays in descending

Advertisement