언어/JAVA

int[] to Integer[]

김어찐 2023. 1. 2. 17:48
728x90

int[] intArray

IntStream.of(intArray).boxed().toArray(Integer[]::new);

728x90