0

How do I join values using Java 8?

How do I join values using Java 8?

31st Jan 2020, 7:55 PM
Tebatso Mokgokolo
Tebatso Mokgokolo - avatar
4 ответов
+ 4
You can do- String str = "hello"+" world"; You can use- concat() with Strings. append() with StringBuffer.
31st Jan 2020, 8:03 PM
Avinesh
Avinesh - avatar
+ 1
Any example to share?
31st Jan 2020, 7:56 PM
Avinesh
Avinesh - avatar
+ 1
String testJoin = String.join("|", "one","two")
31st Jan 2020, 7:59 PM
Tebatso Mokgokolo
Tebatso Mokgokolo - avatar
0
Thanks
31st Jan 2020, 8:09 PM
Tebatso Mokgokolo
Tebatso Mokgokolo - avatar