티스토리 뷰

공부

[Java] Collection.joining()

seunggabi 승가비 2020. 2. 13. 02:43
Arrays.stream("a", "b", "c").collect(Collectors.joining()); 
"abc"

Arrays.stream("a", "b", "c").collect(Collectors.joining(",")); 
"a,b,c"

[reference] https://www.geeksforgeeks.org/java-8-streams-collectors-joining-method-with-examples/

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

[Java] 1.0E-4 to 0.0001  (0) 2020.02.21
[Java] read in HDFS files  (0) 2020.02.21
[Java] Collection.joining()  (0) 2020.02.13
[Linux] Check open port  (0) 2020.02.13
[Python] Install pycurl  (0) 2020.02.13
[IntelliJ] Auto indentation `Ctrl+Alt+L`  (0) 2020.02.13
댓글
댓글쓰기 폼
공지사항
최근에 달린 댓글
Total
30,510
Today
4
Yesterday
63
«   2020/04   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
글 보관함