I have a list of Strings, and I want to concatenate them with spaces in between. So I\'m using StringBuilder. Now if any of the Strings ar
String
StringBuilder
You can use commons-lang's StringUtils#defaultString():
sb.append("Value: ").append(StringUtils.defaultString(myVar));