SyntaxFix
Write A Post
Hire A Developer
Questions
Here is another solution:
for(String serverId : serverIds) { sb.append(","); sb.append(serverId); } String resultingString = ""; if ( sb.length() > 1 ) { resultingString = sb.substring(1); }