Arraylist<Integer>을 int[]로 바꾸기

Rachaen·2022년 2월 12일
0

ArrayList arr_list = new ArrayList();

(add......해주기)

int[] answer = arr_list.stream().mapToInt(i -> i).toArray();

profile
개발을 잘하자!

0개의 댓글

Powered by GraphCDN, the GraphQL CDN