Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java join list as string

List<String> list = Arrays.asList("a","b","c");
String result = String.join(",", list);

System.out.println(result);		//prints a,b,c
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #java #join #list #string
ADD COMMENT
Topic
Name
2+6 =