convert list of strings to string
snippet in c
java list of strings to string
user1124
String string = list.stream().map(Object::toString).collect(Collectors.joining(""));
c# build string out of list of strings
user2814
string.Join(", ", stringCollection); // "Value1, Value2, Value3
convert list of strings to string
user5954
string Something = string.Join(",", MyList);
how to convert lists to strings in python
user3333
# Python program to convert a list
# to string using join() function
# Function to convert
def listToString(s):
# initialize an empty string
str1 = " "
# return string
return (str1.join(s))
# Driver code
s = ['Geeks', 'for', 'Geeks']
print(listToString(s))