I have got a list of string and now I want to take the list into a String with comma(,) separation is concat method the only way or there is some easy and good way
StringBuilder s = null;
List<String> listObjs (5 strings in it)
for(String listObj : listObjs)
s.append(listObj);
s.append(",");
EDIT: guys at SO rocks....slew of answers in seconds..wow!!
StringBuilder(as mentioned many times) for this kind of string manipulations