-
int[]형 배열 Integer[]로 변환하기JAVA 코드 2019. 3. 3. 18:28
/* 자바 8의 IntStream API 사용 */
private Integer[] convertIntegerArray(int[] array) {
return IntStream.of(array).boxed().toArray(Integer[]::new);
}
출처 : RxJava프로그래밍, 한빛미디어 출판, 유동환, 박정준 지음
'JAVA 코드' 카테고리의 다른 글
간단한 계산기 (0) 2019.02.21 Server / Client 간 Thread를 이용한 1:1 실시간 채팅 (0) 2019.02.21 댓글