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);