알고리즘

List를 int[]로 한방에 바꾸는법

돌맹이00 2022. 10. 1. 16:41
 

int[] arr2 = rank.stream().mapToInt(i -> i).toArray();

 

잘쓰세용