https://school.programmers.co.kr/learn/courses/30/lessons/42748풀이import java.util.*;class Solution { public int[] solution(int[] array, int[][] commands) { ArrayList answerArr = new ArrayList(); for(int i = 0; i tempArr = new ArrayList(); for(int j = commands[i][0] -1; j 필요한 만큼만 어레이리스트에 값을 추가한 뒤에 Collections.sort로 정렬을 해준다.그냥 리스트와 다른 점은 Collections.sort()를 이용한다는 것! Arr..