<prompt> Kujenga query katika java ili kupanga safu ya idadi katika utaratibu wa kushuka.Integer safu: 3, 7, 1, 4, 8  <response>: javaint numbers 3, 7, 1, 4, 8;Arrays.sortnumbers; sorts the array in ascending orderforint i 0; i numbers.length 2; i reverses the array to descending order int temp numbersi; numbersi numbersnumbers.length - i - 1; numbersnumbers.length - i - 1 temp;This can also be done using a Comparator to sort the array in descending order in one step:javaInteger numbers 3, 7, 1, 4, 8;Arrays.sortnumbers, Collections.reverseOrder; 