List ๋ฆฌ์คํธ๋ฅผ int[] ๋ฐฐ์ด๋ก ๋ฐ๊พธ๊ธฐ import java.util.*; import java.util.stream.Collectors; class Solution { public int[] solution(int[] progresses, int[] speeds) { List answer = new ArrayList(); ... return answer.stream().mapToInt(i->i).toArray(); } } stream.Collectors๋ฅผ import ํด์ฃผ์ด์ผ ํ๋ค. ๊ทธ๋ฌ๋ฉด, mapToInt ๋ฉ์๋๋ฅผ ํตํด ๋ฐ์ดํฐ ํ์ ์ด Integer์๋ ๋ฆฌ์คํธ๋ฅผ int[] ๋ฐฐ์ด๋ก ๋ฐ๊ฟ ์ ์๋ค! ๐๐