본문 바로가기
Java

[Java] Splitting String and put it on int array

by 건복치 2020. 5. 6.
반응형

Splitting String and put it on int array

int[] intArray = Arrays.stream(input.split(","))
    .mapToInt(Integer::parseInt)
    .toArray();

 

https://stackoverflow.com/questions/8348591/splitting-string-and-put-it-on-int-array
반응형

댓글