1 2 3 4 5 int[] a = {1,2,3,4,5,6}; a = Arrays.stream(a).boxed().sorted(Collections.reverseOrder()).mapToInt(Integer::intValue).toArray(); // a = {6,5,4,3,2,1} Colored by Color Scripter cs - 앞에 있는 게시물에는 int[] 배열을 Interger[]로 변환시키고 그 변환된 배열을 내림차순으로 정렬 후 다시 int[] 배열로 바꾸어 주었는데 위와 같은 방법으로 스트림을 사용하면 Integer변환 없이 사용할 수 있다.