For example, I want to convert the string test123 test124 test125
to
test123+""+test124+""+test125
or test123test124test125
.
How to achieve this?
Thanks
String output = inputText.replaceAll("\\s+","");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With