Java Convert List To Comma Separated String
Java Convert List To Comma Separated String . We mostly spit a string by comma or space. List<<strong>string</strong>> items = arrays.aslist (str.split (\\s*,\\s*)); Convert a list to a commaseparated string in Java from attacomsian.com Using join () method of string class. The code splits the string using the regex \s*,\s* as a delimiter, which. Apache commons lang library offers the stringutils.join () method, which can concatenate elements of an iterable together using the specified separator.