import java.util.Arrays; public class SelectionSort { public static void main(String[] args) { // initialize a new float array float[] a = new float[]{1.12f,7.32f,3.21f,1.07f,9.2f,1.7f,10.12f}; java.util.Collections.reverseOrder(); // print the sorted array of float System.out.println(Arrays.toString(a)); } } What I have tried: I tried Array.sort. now im trying java.util.
java.util.Collections.reverseOrder();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)