mapToInt

taehoon·2023년 10월 23일
0

( JAVA ) Stream

목록 보기
3/5
Arrays.stream(strList).mapToInt(String::length).toArray();

mapToInt 결과를 int값으로

String::length // 문자열길이로 mapping
profile
건강

0개의 댓글