int [] tab2 = new int[]{1,5,0,-2}; Arrays.sort(tab2); ArrayUtils.reverse(tab2); System.out.print(Arrays.toString(tab2));