Computer Science, asked by suryarevanth27, 3 months ago

can anyone help me with this question SORTING OF AN ARRAY​

Answers

Answered by arpit26m4
2

Answer:

  1. java. util. Arrays
  2. import java. util. Arrays;
  3. public class Sorting {
  4. public static void main (String [] args) {
  5. int [] array = {45,12,85,32,89,39,69,44,42,1,6,8};
  6. Arrays. sort(array);
  7. for (int i = 0; i < array. length; i++) {
  8. System. out. println(array[i]);
  9. };

Explanation:

Similar questions