Answers for "how does sort work in java"

2

sorting java

public class SortingData {
    public static void main(String[] args)
    {
        int[] arr = { 13, 7, 6, 45, 21, 9, 101, 102 };
  		
        Arrays.sort(arr);//sort() function
  
        System.out.printf("Modified arr[] : %s",
                          Arrays.toString(arr));
    }
}
Posted by: Guest on September-02-2021

Code answers related to "how does sort work in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language