I want to add prefix to every word in a given string. My code is :-
StringBuilder strColsToReturns = new StringBuilder();
String strPrefix = "abc.";
strColsToReturns.append(String.format(" %sId, %sname, %stype,", strPrefix, strPrefix, strPrefix));
This is fine, for small string, but I have a very large static string like this. So, this method of adding string prefix looks like a tedious method. Is there any other sophisticated way to achieve this.