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
In one line you can do:
System.out.println(sb.append("Value: ").append((s==null)?"":s));