Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java string join arraylist

// You can't just do String.join(", ", list) because
// the list has to be a String[]. This code works on
// everything.

list.stream().map(Object::toString).collect(Collectors.joining(", "));
 
PREVIOUS NEXT
Tagged: #java #string #join #arraylist
ADD COMMENT
Topic
Name
9+4 =