devxlogo

How to Quickly Sort an Array

How to Quickly Sort an Array

The quickest solution for sorting an array in Java relies on Arrays.sort() method as below:

int[] arr = {5, 12, 3, 44, 55};   Arrays.sort(arr); 

devx-admin

Share the Post: