How to use String Formatter to concatenate strings. what I tried is not working.
String description = "This is description,";
String message = "This is message";
String result = description + " " + message; //works fine.
//I want to replace it using String.format.
//I tried the below code and it does not work.
String.format(description, " ", message);
Expected result is This is description This is message
What is the right way of using String.format.
Thanks R
StringBuilderto concatenate string.