Do you know how to convert a string array to a string in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Do you know how to convert a string array to a string in java?

i know you can use Arrays toString method but i dont like how it returns the String https://code.sololearn.com/cTd5XkC8cL4L/?ref=app is there a way to get it without brace and commas as this program outputs?

19th Sep 2018, 8:31 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
8 Answers
+ 5
Depends what do you expect, you can try like this https://code.sololearn.com/cBIltdK15o36/?ref=app
19th Sep 2018, 9:06 PM
Michal
Michal - avatar
+ 3
how again?.....
19th Sep 2018, 9:06 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
+ 3
Michal i think you just printed the array
19th Sep 2018, 9:10 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
+ 3
Mind To Machine, i just edited
19th Sep 2018, 9:31 PM
Michal
Michal - avatar
+ 3
append or use + operator with blank string ""👈
20th Sep 2018, 4:52 PM
Aarav Raj
Aarav Raj - avatar
+ 2
Convert Array to Stream and then just call reduce!
19th Sep 2018, 10:36 PM
Chriptus13
Chriptus13 - avatar
+ 2
String.join("", array);
21st Sep 2018, 11:16 AM
LunarCoffee
LunarCoffee - avatar