티스토리 뷰

공부

[Java] String stream to Array

승가비 2019. 6. 30. 00:00
728x90
List<String> strings = Arrays.asList("1","2","3");
String[] stringsArray = strings.stream().toArray(String[]::new);

[출처] https://stackoverflow.com/questions/23079003/how-to-convert-a-java-8-stream-to-an-array

728x90

'공부' 카테고리의 다른 글

[Spring] RequestMapping: GET & POST  (0) 2019.06.30
[JS] shuffle  (0) 2019.06.30
[Java] join comma by List<String>  (0) 2019.06.29
[SQL] mutiple with  (0) 2019.06.29
if ... else VS switch ... case  (0) 2019.06.29
댓글